diff options
Diffstat (limited to 'library/customButton.cpp')
-rw-r--r-- | library/customButton.cpp | 3 |
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(); |