summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 09:08:01 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 09:10:11 +0100
commitbf0e0f88563377ee6f2db26970d3199c08acaa38 (patch)
tree6650013d7d3c0299541835c357550821be5ebf25
parent969a8c566dc23e1a2c962e0d8e96577c86a5940f (diff)
and one more fix for error bar import, related fdo#60083
Change-Id: I76ff4849137aaad175b3c95dce6644d612871201
-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 a587fde28ad7..8b9bc0ed484f 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: