diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-07 14:25:36 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-12-08 13:37:08 +0100 |
commit | 408d190f399724b4928624acc7beda50191269fd (patch) | |
tree | 5bf66cc6f769a1aa4c8bf4dd8c298ec7699b8421 /sd/source | |
parent | dacb97ecdd623d033fdd475131e3c7dc87c17f52 (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
Reviewed-on: https://gerrit.libreoffice.org/64803
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/controller/slidelayoutcontroller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx index 4ba598f10809..b26c193d0455 100644 --- a/sd/source/ui/controller/slidelayoutcontroller.cxx +++ b/sd/source/ui/controller/slidelayoutcontroller.cxx @@ -135,7 +135,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.Width() = std::max( aLayoutItemSize.Width(), aImg.GetSizePixel().Width() ); |