[Libreoffice-commits] .: framework/source
Fridrich Strba
fridrich at kemper.freedesktop.org
Fri Oct 8 16:06:35 PDT 2010
framework/source/uielement/menubarmerger.cxx | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit da70226f13e877d0b82e1e4fa3e38fca60b6db0d
Author: Thorsten Behrens <tbehrens at novell.com>
Date: Sat Oct 9 00:58:40 2010 +0200
framework-menubar-fix.diff: Framework menubar fix
diff --git a/framework/source/uielement/menubarmerger.cxx b/framework/source/uielement/menubarmerger.cxx
index 51f87a4..852e456 100644
--- a/framework/source/uielement/menubarmerger.cxx
+++ b/framework/source/uielement/menubarmerger.cxx
@@ -101,6 +101,14 @@ ReferencePathInfo MenuBarMerger::FindReferencePath(
{
sal_uInt32 i( 0 );
const sal_uInt32 nCount( rReferencePath.size() );
+
+ ReferencePathInfo aResult;
+ if ( !nCount )
+ {
+ aResult.eResult = RP_MENUITEM_NOT_FOUND;
+ return aResult;
+ }
+
Menu* pCurrMenu( pMenu );
RPResultInfo eResult( RP_OK );
@@ -142,7 +150,6 @@ ReferencePathInfo MenuBarMerger::FindReferencePath(
}
while (( pCurrMenu != 0 ) && ( i < nCount ) && ( eResult == RP_OK ));
- ReferencePathInfo aResult;
aResult.pPopupMenu = pCurrMenu;
aResult.nPos = nPos;
aResult.nLevel = nLevel;
More information about the Libreoffice-commits
mailing list