summaryrefslogtreecommitdiff
path: root/shared/customButton.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
commitf570e2f2685aa43aa518c2f8578391c1847cddbe (patch)
treeb9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /shared/customButton.cpp
parent3.2 (diff)
downloadFreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip
3.3
Diffstat (limited to 'shared/customButton.cpp')
-rw-r--r--shared/customButton.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/customButton.cpp b/shared/customButton.cpp
index 40c0397f..73b9d1ee 100644
--- a/shared/customButton.cpp
+++ b/shared/customButton.cpp
@@ -277,17 +277,17 @@ void wxButtonWithImage::refreshButtonLabel()
//wxDC::DrawLabel() unfortunately isn't working for transparent images on Linux, so we need to use custom image-concatenation
if (bitmapFront.IsOk())
- writeToImage(wxImage(bitmapFront.ConvertToImage()),
+ writeToImage(bitmapFront.ConvertToImage(),
wxPoint(0, (transparentImage.GetHeight() - bitmapFront.GetHeight()) / 2),
transparentImage);
if (bitmapText.IsOk())
- writeToImage(wxImage(bitmapText.ConvertToImage()),
+ writeToImage(bitmapText.ConvertToImage(),
wxPoint(bitmapFront.GetWidth() + m_spaceAfter, (transparentImage.GetHeight() - bitmapText.GetHeight()) / 2),
transparentImage);
if (bitmapBack.IsOk())
- writeToImage(wxImage(bitmapBack.ConvertToImage()),
+ writeToImage(bitmapBack.ConvertToImage(),
wxPoint(bitmapFront.GetWidth() + m_spaceAfter + bitmapText.GetWidth() + m_spaceBefore, (transparentImage.GetHeight() - bitmapBack.GetHeight()) / 2),
transparentImage);
bgstack15