[Libreoffice-commits] core.git: extensions/source
Tomaž Vajngerl
tomaz.vajngerl at collabora.co.uk
Thu Mar 15 22:16:43 UTC 2018
extensions/source/propctrlr/usercontrol.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cfb9ebc12a9f1084227d6b85827ef185a42a619a
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date: Thu Mar 15 20:42:13 2018 +0900
filedialog: use isGraphicObjectUniqueIdURL instead of constant
Change-Id: I54f5a1dae10219b3d6f06640488eded7f6840767
Reviewed-on: https://gerrit.libreoffice.org/51327
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index 82c2634a7670..a74726df964b 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -22,6 +22,7 @@
#include <com/sun/star/inspection/PropertyControlType.hpp>
#include <svl/numuno.hxx>
#include <rtl/math.hxx>
+#include <vcl/GraphicObject.hxx>
#include <tools/debug.hxx>
#include <svl/zformat.hxx>
#include <connectivity/dbconversion.hxx>
@@ -258,7 +259,7 @@ namespace pcr
OUString sURL;
if ( _rValue >>= sURL )
{
- if ( sURL.startsWith( "vnd.sun.star.GraphicObject:" ) )
+ if (GraphicObject::isGraphicObjectUniqueIdURL(sURL))
getTypedControlWindow()->DisplayURL( getTypedControlWindow()->GetPlaceHolder() );
else
getTypedControlWindow()->DisplayURL( sURL );
More information about the Libreoffice-commits
mailing list