bnc#817956 DOCX import: missing last character of shape text
Make sure writerfilter only removes the last character of the text if it's a newline. Change-Id: I96980e2d148ced93363b3147545afdd0dd070e5d
This commit is contained in:
@@ -305,7 +305,10 @@ void DomainMapper_Impl::RemoveLastParagraph( )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
xCursor->goLeft( 1, true );
|
xCursor->goLeft( 1, true );
|
||||||
xCursor->setString(OUString());
|
// If this is a text on a shape, possibly the text has the trailing
|
||||||
|
// newline removed already.
|
||||||
|
if (xCursor->getString() == "\n")
|
||||||
|
xCursor->setString(OUString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( const uno::Exception& )
|
catch( const uno::Exception& )
|
||||||
|
Reference in New Issue
Block a user