summaryrefslogtreecommitdiff
path: root/shared/customButton.cpp
diff options
context:
space:
mode:
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