summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/Context.cxx9
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx4
2 files changed, 2 insertions, 11 deletions
diff --git a/sfx2/source/sidebar/Context.cxx b/sfx2/source/sidebar/Context.cxx
index 8a254ebbe2f7..2065fbd0473b 100644
--- a/sfx2/source/sidebar/Context.cxx
+++ b/sfx2/source/sidebar/Context.cxx
@@ -46,14 +46,7 @@ Context::Context (
sal_Int32 Context::EvaluateMatch (
const Context& rOther) const
{
- bool bApplicationNameIsAny (rOther.msApplication == AnyApplicationName);
-
- // special case for charts which use a whole own set of decks
- if (msApplication == "com.sun.star.chart2.ChartDocument")
- {
- bApplicationNameIsAny = false;
- }
-
+ const bool bApplicationNameIsAny (rOther.msApplication == AnyApplicationName);
if (rOther.msApplication == msApplication || bApplicationNameIsAny)
{
// Application name matches.
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 898898a09d4a..a1c6c211d794 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -466,9 +466,7 @@ void SidebarController::NotifyResize()
// it's the PropertyDeck that really has many panes
// that can collapse or expand. For others, limit
// the height to something sensible.
- // tdf#130348: Add special case for ChartDeck, too.
- const sal_Int32 nExtHeight = (msCurrentDeckId == "PropertyDeck" ? 2000 :
- (msCurrentDeckId == "ChartDeck" ? 1200 : 600));
+ const sal_Int32 nExtHeight = (msCurrentDeckId == "PropertyDeck" ? 2000 : 600);
// No TabBar in LOK (use nWidth in full).
mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth, nExtHeight);
}