summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index ff30e5928a50..ac04ace27d1b 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -482,7 +482,7 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
sal_Bool bDateNTimeCol = sal_False;
if (!aPossibleTypes.empty())
{
- sal_Int32 nPreferedType = aPossibleTypes[0];
+ sal_Int32 nPreferredType = aPossibleTypes[0];
if ((m_pImpl->nDropAction == DND_ACTION_LINK) && (aPossibleTypes.size() > 1))
{
ImageList aImageList( SVX_RES(RID_SVXIMGLIST_FMEXPL) );
@@ -492,18 +492,18 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
PopupMenu* pMenu = aInsertMenu.GetPopupMenu(SID_FM_INSERTCOL);
for (std::vector<sal_uInt16>::const_iterator iter = aPossibleTypes.begin(); iter != aPossibleTypes.end(); ++iter)
SetMenuItem(aImageList, *iter, pMenu, aTypeMenu, sal_True, 0);
- nPreferedType = aTypeMenu.Execute(this, m_pImpl->aDropPosPixel);
+ nPreferredType = aTypeMenu.Execute(this, m_pImpl->aDropPosPixel);
}
- bDateNTimeCol = nPreferedType == SID_FM_TWOFIELDS_DATE_N_TIME;
+ bDateNTimeCol = nPreferredType == SID_FM_TWOFIELDS_DATE_N_TIME;
sal_uInt16 nColCount = bDateNTimeCol ? 2 : 1;
OUString sFieldService;
while (nColCount--)
{
if (bDateNTimeCol)
- nPreferedType = nColCount ? SID_FM_DATEFIELD : SID_FM_TIMEFIELD;
+ nPreferredType = nColCount ? SID_FM_DATEFIELD : SID_FM_TIMEFIELD;
- sFieldService = FieldServiceFromId(nPreferedType);
+ sFieldService = FieldServiceFromId(nPreferredType);
Reference< XPropertySet > xThisRoundCol;
if ( !sFieldService.isEmpty() )
xThisRoundCol = xFactory->createColumn(sFieldService);