summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 09:08:01 +0100
committerEike Rathke <erack@redhat.com>2013-03-06 10:30:21 +0000
commitabcba0e9260aa3164b3c1a7e6ea741de5e1931b9 (patch)
tree04fbc4de36755d096b3a6067a8c945432436884d
parent5a1c73cbf18ae5398f736d54224622b86a9bfd54 (diff)
and one more fix for error bar import, related fdo#60083
Change-Id: I76ff4849137aaad175b3c95dce6644d612871201 Reviewed-on: https://gerrit.libreoffice.org/2559 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--xmloff/source/chart/SchXMLPlotAreaContext.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
index 4463ebf4d999..221893142b9c 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
@@ -1110,6 +1110,14 @@ void SetErrorBarPropertiesFromStyleName( const OUString& aStyleName, uno::Refere
aAny >>= aNegRange;
}
+ aAny = SchXMLTools::getPropertyFromContext("PercentageError",
+ pSeriesStyleContext, pStylesCtxt);
+ if( aAny.hasValue() && aBarStyle == com::sun::star::chart::ErrorBarStyle::RELATIVE )
+ {
+ xBarProp->setPropertyValue("PositiveError", aAny);
+ xBarProp->setPropertyValue("NegativeError", aAny);
+ }
+
switch(aBarStyle)
{
case com::sun::star::chart::ErrorBarStyle::ERROR_MARGIN: