diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-04-24 01:32:48 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-04-25 01:09:37 +0300 |
commit | e0be1a74444683f760d90f88cc3be14d9b377591 (patch) | |
tree | 38289cdb8d94ab83a9175e5d50b9eedb21eefff3 /svx | |
parent | 9dd8b943ba0d1b60ee4d76ec4a514f0b087b1398 (diff) |
Use the show method directly
Change-Id: If4e11ae1fda86b612aeeed94b1cde4a5711c6359
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/text/TextPropertyPanel.cxx | 6 |
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()) |