summaryrefslogtreecommitdiff
path: root/sd/source/ui/toolpanel
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/toolpanel')
-rw-r--r--sd/source/ui/toolpanel/ControlContainer.cxx2
-rw-r--r--sd/source/ui/toolpanel/TitledControl.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/toolpanel/ControlContainer.cxx b/sd/source/ui/toolpanel/ControlContainer.cxx
index 7843927bea81..fe4e2a629a6d 100644
--- a/sd/source/ui/toolpanel/ControlContainer.cxx
+++ b/sd/source/ui/toolpanel/ControlContainer.cxx
@@ -337,6 +337,7 @@ sal_uInt32 ControlContainer::GetNextIndex (
// Go to the regular successor.
nCandidate += 1;
if (nCandidate==maControlList.size())
+ {
if ( ! bCycle)
{
// We have reached the end of the list of controls and must
@@ -348,6 +349,7 @@ sal_uInt32 ControlContainer::GetNextIndex (
// Cycle to the head of the list.
nCandidate = 0;
}
+ }
if (nCandidate == nIndex)
{
diff --git a/sd/source/ui/toolpanel/TitledControl.cxx b/sd/source/ui/toolpanel/TitledControl.cxx
index f864792288a4..14c7c5004e91 100644
--- a/sd/source/ui/toolpanel/TitledControl.cxx
+++ b/sd/source/ui/toolpanel/TitledControl.cxx
@@ -386,10 +386,12 @@ void TitledControl::UpdateStates (void)
TreeNode* pControl = GetControl(false);
if (pControl!=NULL && pControl->GetWindow() != NULL)
+ {
if (IsVisible() && IsExpanded())
pControl->GetWindow()->Show();
else
pControl->GetWindow()->Hide();
+ }
}