summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx
index b381b7c9805c..4486cfe35950 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.cxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.cxx
@@ -129,11 +129,7 @@ void TextPropertyPanel::HandleContextChange (
return;
maContext = aContext;
-
- if (maContext.GetApplication_DI() == sfx2::sidebar::EnumContext::Application_Calc)
- mpToolBoxIncDec->Hide();
- else
- mpToolBoxIncDec->Show();
+ mpToolBoxIncDec->Show(maContext.GetApplication_DI() != sfx2::sidebar::EnumContext::Application_Calc);
bool bWriterText = false;
switch (maContext.GetCombinedContext_DI())