summaryrefslogtreecommitdiff
path: root/library/customButton.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:58:10 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:58:10 +0200
commitfefe20351d0720683990b666584b6879c90bd37d (patch)
tree8ab90520ae2123ac84293b0f9cec006317e5fc01 /library/customButton.cpp
parent1.18 (diff)
downloadFreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.tar.gz
FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.tar.bz2
FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.zip
1.19
Diffstat (limited to 'library/customButton.cpp')
-rw-r--r--library/customButton.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/customButton.cpp b/library/customButton.cpp
index 02cfdad0..fc686d3f 100644
--- a/library/customButton.cpp
+++ b/library/customButton.cpp
@@ -126,6 +126,9 @@ void linearInterpolation(wxImage& img)
wxBitmap wxButtonWithImage::createBitmapFromText(const wxString& text)
{
+ if (text.empty())
+ return wxBitmap();
+
wxFont currentFont = wxBitmapButton::GetFont();
wxColor textColor = wxBitmapButton::GetForegroundColour();
bgstack15