From d89be2a78a7eca277bf2316258d79c0979999652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 20 Oct 2013 17:04:00 +0100 Subject: [PATCH] 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 --- sfx2/source/menu/mnumgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();