diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-02 01:58:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-02 11:33:28 +0100 |
commit | 647ff1add92a4d6473515462d4e5939b99b76d27 (patch) | |
tree | 3bb1e79f569c4e1dc5ac6e21cc13901e5ba1362f /filter/source/graphicfilter | |
parent | 334e6e2f1ad3da319be0849ec426aa64b18cb599 (diff) |
ofz: use safer ctor
Change-Id: I23d23a73442a22ecced0c0287b42a7c667ebfa7e
Diffstat (limited to 'filter/source/graphicfilter')
-rw-r--r-- | filter/source/graphicfilter/icgm/actimpr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx index 0a63a8ea15dc..6d7b1364b22b 100644 --- a/filter/source/graphicfilter/icgm/actimpr.cxx +++ b/filter/source/graphicfilter/icgm/actimpr.cxx @@ -805,7 +805,7 @@ void CGMImpressOutAct::DrawText( awt::Point& rTextPos, awt::Size& rTextSize, cha uno::Any aFirstQuery( maXShape->queryInterface( cppu::UnoType<text::XText>::get())); if( aFirstQuery >>= xText ) { - OUString aStr( OUString::createFromAscii( pString ) ); + OUString aStr(pString, rtl_str_getLength(pString), RTL_TEXTENCODING_ASCII_US); uno::Reference< text::XTextCursor > aXTextCursor( xText->createTextCursor() ); { |