diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-25 01:55:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-26 00:27:02 +0200 |
commit | 5845e73783fc99cd42188481fc5df29f0786394f (patch) | |
tree | 47a53b2211c4f58893649fd26a3fc459e5b67501 /chart2 | |
parent | 6301e1e8b983f099d1f93140a3fb54c635206ac6 (diff) |
handle chart wall correctly in area panel
Change-Id: Iacd9498884a20357f217e1165a3422b6f1e2aa81
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/sidebar/ChartAreaPanel.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chart2/source/controller/sidebar/ChartAreaPanel.cxx b/chart2/source/controller/sidebar/ChartAreaPanel.cxx index 9343499e27af..7f5077fc194c 100644 --- a/chart2/source/controller/sidebar/ChartAreaPanel.cxx +++ b/chart2/source/controller/sidebar/ChartAreaPanel.cxx @@ -42,7 +42,21 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet( css::uno::Reference<css::frame::XModel> xModel) { OUString aCID = getCID(xModel); - return ObjectIdentifier::getObjectPropertySet(aCID, xModel); + css::uno::Reference<css::beans::XPropertySet> xPropSet = + ObjectIdentifier::getObjectPropertySet(aCID, xModel); + + ObjectType eType = ObjectIdentifier::getObjectType(aCID); + if (eType == OBJECTTYPE_DIAGRAM) + { + css::uno::Reference<css::chart2::XDiagram> xDiagram( + xPropSet, css::uno::UNO_QUERY); + if (!xDiagram.is()) + return xPropSet; + + xPropSet.set(xDiagram->getWall()); + } + + return xPropSet; } ChartController* getController(css::uno::Reference<css::frame::XModel> xModel) |