summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-20 17:04:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-20 19:00:37 +0100
commitd89be2a78a7eca277bf2316258d79c0979999652 (patch)
tree066a5805cd50e16977c1629d5dda45ba29760ec1 /sfx2
parent3f16ec73e07b7c187200656cfa969d71b4bea7b3 (diff)
STRING_LEN is the same as STRING_NOTFOUND
So use -1 here to realign logic to what it was before 35c24f9b6e08ef1328df01b2d3d11ef518897130. Though it doesn't matter because aThesLookUpStr is going to be empty in the case where we would examine the default value of nDelimPos Change-Id: I369c4e6903407b525dc0dcee9d507e90590eeb6b
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/menu/mnumgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx
index 344834ae78e0..a1b318667286 100644
--- a/sfx2/source/menu/mnumgr.cxx
+++ b/sfx2/source/menu/mnumgr.cxx
@@ -138,7 +138,7 @@ PopupMenu* InsertThesaurusSubmenu_Impl( SfxBindings* pBindings, Menu* pSVMenu )
pBindings->QueryState( SID_THES, pItem );
OUString aThesLookUpStr;
SfxStringItem *pStrItem = dynamic_cast< SfxStringItem * >(pItem);
- sal_Int32 nDelimPos = STRING_LEN;
+ sal_Int32 nDelimPos = -1;
if (pStrItem)
{
aThesLookUpStr = pStrItem->GetValue();