Kaydet (Commit) 7963ef59 authored tarafından Marco Cecchetti's avatar Marco Cecchetti Kaydeden (comit) Andras Timar

tdf#95356: unit test about text decorations for svg export

1) Fixed the trailing space issue in text decoration attribute value.

2) Changed the SVG export suite in order to make it more reusable for
other tests.

3) Added a unit test for testing that text decorations are exported
correctly.

Reviewed-on: https://gerrit.libreoffice.org/19870Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
(cherry picked from commit 50506421)

Conflicts:
	sd/qa/unit/SVGExportTests.cxx

Change-Id: I2bd71974242a0007726fbdd5ef5637a9ec62fd47
üst fc53041c
......@@ -811,13 +811,17 @@ void SVGTextWriter::addFontAttributes( bool bIsTextContainer )
if( eCurFontUnderline != eParFontUnderline )
{
if( eCurFontUnderline != UNDERLINE_NONE )
sTextDecoration = "underline ";
sTextDecoration = "underline";
bIsDecorationChanged = true;
}
if( eCurFontStrikeout != eParFontStrikeout )
{
if( eCurFontStrikeout != STRIKEOUT_NONE )
sTextDecoration += "line-through ";
{
if( !sTextDecoration.isEmpty() )
sTextDecoration += " ";
sTextDecoration += "line-through";
}
bIsDecorationChanged = true;
}
......
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