xmloff/source/text/txtparae.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5f29fb1e9cd4e2432bcdf4deb4d433e5272a2ad4 Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> Date: Tue Jul 25 12:23:57 2017 +0200 Use isEmpty instead of getLength Change-Id: Ic0f325bcb28f199b3456dabcd861e40fab17569c Reviewed-on: https://gerrit.libreoffice.org/40397 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 720ac814a24a..fc08ff2238d6 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -3088,7 +3088,7 @@ void XMLTextParagraphExport::_exportTextGraphic( const OUString sReplacementURL(GetExport().AddEmbeddedGraphicObject( sReplacementOrigURL )); // If there is no url, then graphic is empty - if(sReplacementURL.getLength()) + if(!sReplacementURL.isEmpty()) { GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, sReplacementURL); GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits