summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-03-15 20:42:13 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-03-15 23:16:15 +0100
commitcfb9ebc12a9f1084227d6b85827ef185a42a619a (patch)
tree69ebd40c99f40de2c596dd53d87053bb6e7828ec /extensions
parent6c6b2c886e2fbb898a369a67b4248efb4b70cfb6 (diff)
filedialog: use isGraphicObjectUniqueIdURL instead of constant
Change-Id: I54f5a1dae10219b3d6f06640488eded7f6840767 Reviewed-on: https://gerrit.libreoffice.org/51327 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx3
1 files changed, 2 insertions, 1 deletions
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 );