diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2018-11-26 19:50:38 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-10-11 23:54:06 +0200 |
commit | 969cf08615a1b0b1d45a640362a7248039f4d4f1 (patch) | |
tree | f10d21c0409799b69b59d986d8663a5a004a71f6 /sd/source/ui/sidebar | |
parent | 4e421d9cd1fc799a4d31827e2f7b344faeab05c8 (diff) |
Propagate stock info through slide layouts.
(cherry picked from commit f107161bbd0eb4ee5766f5f983d18b32b929b15c)
Change-Id: If717db82fe6ab14bbf32225c1f1c95f44954f011
Reviewed-on: https://gerrit.libreoffice.org/80667
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sd/source/ui/sidebar')
-rw-r--r-- | sd/source/ui/sidebar/LayoutMenu.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index 17f7c2655e60..ab58af558cf1 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -528,12 +528,16 @@ void LayoutMenu::Fill() { if ((WritingMode_TB_RL != pInfo->meWritingMode) || bVertical) { - BitmapEx aBmp(OUString::createFromAscii(pInfo->msBmpResId)); + Image aImg("private:graphicrepository/" + OUString::createFromAscii(pInfo->msBmpResId)); if (bRightToLeft && (WritingMode_TB_RL != pInfo->meWritingMode)) - aBmp.Mirror (BmpMirrorFlags::Horizontal); + { // FIXME: avoid interpolating RTL layouts. + BitmapEx aRTL = aImg.GetBitmapEx(); + aRTL.Mirror(BmpMirrorFlags::Horizontal); + aImg = Image(aRTL); + } - InsertItem(i, Image(aBmp), SdResId(pInfo->mpStrResId)); + InsertItem(i, aImg, SdResId(pInfo->mpStrResId)); SetItemData (i, new AutoLayout(pInfo->maAutoLayout)); } } |