summaryrefslogtreecommitdiff
path: root/vcl/source/helper/commandinfoprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/helper/commandinfoprovider.cxx')
-rw-r--r--vcl/source/helper/commandinfoprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx
index b04cff3827ae..5ef6f099bd5b 100644
--- a/vcl/source/helper/commandinfoprovider.cxx
+++ b/vcl/source/helper/commandinfoprovider.cxx
@@ -250,17 +250,17 @@ sal_Int32 CommandInfoProvider::GetPropertiesForCommand (
{
SetFrame(rxFrame);
+ sal_Int32 nValue = 0;
const Sequence<beans::PropertyValue> aProperties (GetCommandProperties(rsCommandName));
for (sal_Int32 nIndex=0; nIndex<aProperties.getLength(); ++nIndex)
{
if (aProperties[nIndex].Name == "Properties")
{
- sal_Int32 nValue = 0;
aProperties[nIndex].Value >>= nValue;
- return nValue;
+ break;
}
}
- return 0;
+ return nValue;
}
void CommandInfoProvider::SetFrame (const Reference<frame::XFrame>& rxFrame)