summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/Context.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-09 20:39:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-12 18:56:49 +0200
commitb33b2afe6a8b4224450da7c686beb81dbf5cd24a (patch)
tree17c0970756a0c9b9f6a9968acee641a4bdc2802a /sfx2/source/sidebar/Context.cxx
parent5a72bbd483ddf6c7cc949a8708d1697654cc9ce2 (diff)
big step towards real chart sidebar
Change-Id: I9b7d1f963746f7689b02099fbae77c9c943bad58
Diffstat (limited to 'sfx2/source/sidebar/Context.cxx')
-rw-r--r--sfx2/source/sidebar/Context.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Context.cxx b/sfx2/source/sidebar/Context.cxx
index 3a7ce010b24c..9baf30b07777 100644
--- a/sfx2/source/sidebar/Context.cxx
+++ b/sfx2/source/sidebar/Context.cxx
@@ -46,7 +46,14 @@ Context::Context (
sal_Int32 Context::EvaluateMatch (
const Context& rOther) const
{
- const bool bApplicationNameIsAny (rOther.msApplication == AnyApplicationName);
+ 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;
+ }
+
if (rOther.msApplication.equals(msApplication) || bApplicationNameIsAny)
{
// Application name matches.