summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-07 14:25:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-07 20:14:45 +0100
commit0f104bf33530467380044b9eb4cd3f8bd9c283f1 (patch)
treec66cf53b554e3e89baf39170cbfc5c16007355b4 /sd/source/ui
parent8fa5c0315046e741d301ed236c946c55693d1eee (diff)
utility constructor for Image "private:graphicrepository" urls
Change-Id: I118039f4e47818a43da9302ce3550ea800522675 Reviewed-on: https://gerrit.libreoffice.org/64765 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx
index 6f4ba93c1e92..27d597b2172f 100644
--- a/sd/source/ui/controller/slidelayoutcontroller.cxx
+++ b/sd/source/ui/controller/slidelayoutcontroller.cxx
@@ -132,7 +132,7 @@ static void fillLayoutValueSet( ValueSet* pValue, const snewfoil_value_info_layo
for( ; pInfo->mpStrResId; pInfo++ )
{
OUString aText(SdResId(pInfo->mpStrResId));
- Image aImg("private:graphicrepository/" + OUString::createFromAscii(pInfo->msBmpResId));
+ Image aImg(StockImage::Yes, OUString::createFromAscii(pInfo->msBmpResId));
pValue->InsertItem(static_cast<sal_uInt16>(pInfo->maAutoLayout)+1, aImg, aText);
aLayoutItemSize.setWidth( std::max( aLayoutItemSize.Width(), aImg.GetSizePixel().Width() ) );
aLayoutItemSize.setHeight( std::max( aLayoutItemSize.Height(), aImg.GetSizePixel().Height() ) );