summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/baside2b.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-12 12:11:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-12 12:33:31 +0000
commit96d0506fceb8064c5ae156dfaf12d5b45623c557 (patch)
tree6f48dc728cff3312b632d1b172dde30f8473b6fd /basctl/source/basicide/baside2b.cxx
parent0412d863d144344b4c6c04b22209c0c57f1d6fb8 (diff)
unwind RID_IMGLST_LAYOUT imagelist
Change-Id: I17146905c93162977effe9179c844ba691320d35
Diffstat (limited to 'basctl/source/basicide/baside2b.cxx')
-rw-r--r--basctl/source/basicide/baside2b.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 2ae1b955d8d8..a8c6d9fee332 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -76,8 +76,7 @@ SbxVariable* IsSbxVariable (SbxBase* pBase)
Image GetImage (unsigned nId)
{
- static ImageList const aImagesNormal(IDEResId(RID_IMGLST_LAYOUT));
- return aImagesNormal.GetImage(nId);
+ return Image(BitmapEx(IDEResId(nId)));
}
int const nScrollLine = 12;
@@ -1352,8 +1351,8 @@ void BreakPointWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle
Image const aBrk[2] =
{
- GetImage(IMGID_BRKDISABLED),
- GetImage(IMGID_BRKENABLED)
+ GetImage(RID_BMP_BRKDISABLED),
+ GetImage(RID_BMP_BRKENABLED)
};
Size const aBmpSz = rRenderContext.PixelToLogic(aBrk[1].GetSizePixel());
@@ -1379,7 +1378,7 @@ void BreakPointWindow::ShowMarker(vcl::RenderContext& rRenderContext)
Size const aOutSz = GetOutputSize();
long const nLineHeight = GetTextHeight();
- Image aMarker = GetImage(bErrorMarker ? IMGID_ERRORMARKER : IMGID_STEPMARKER);
+ Image aMarker = GetImage(bErrorMarker ? RID_BMP_ERRORMARKER : RID_BMP_STEPMARKER);
Size aMarkerSz(aMarker.GetSizePixel());
aMarkerSz = rRenderContext.PixelToLogic(aMarkerSz);