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:
Miklos Vajna
2013-05-28 16:11:38 +02:00
parent b2d08d759e
commit 4eaabc45f7

View File

@@ -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& )