Kaydet (Commit) 8c51484a authored tarafından Muthu Subramanian's avatar Muthu Subramanian

n#813291: [PPTX] Axis Labels with percentage.

Added the check only in the Axis Labels import.
Maybe this check can be moved to convertNumberFormat()
üst 57a14ea0
......@@ -305,9 +305,13 @@ void AxisConverter::convertFromModel( const Reference< XCoordinateSystem >& rxCo
if( (aScaleData.AxisType == cssc2::AxisType::REALNUMBER) || (aScaleData.AxisType == cssc2::AxisType::PERCENT) )
{
bool bPercent = false;
if( mrModel.maNumberFormat.maFormatCode.indexOf('%') >= 0)
{
mrModel.maNumberFormat.mbSourceLinked = false;
getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat );
bPercent = true;
}
getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat, bPercent );
}
// position of crossing axis ------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment