Browse Source

patch

master
despair 5 years ago
parent
commit
f88c8fce44
  1. 2
      src/graphics/components/ButtonComponent.cpp

2
src/graphics/components/ButtonComponent.cpp

@ -128,7 +128,7 @@ void ButtonComponent::resize(const int passedWindowWidth, const int passedWindow @@ -128,7 +128,7 @@ void ButtonComponent::resize(const int passedWindowWidth, const int passedWindow
}
void ButtonComponent::resizeToTextSize() {
if (!textLabel->win && this->win) {
if (textLabel && !textLabel->win && this->win) {
textLabel->win = this->win;
}
textLabel->x = x;

Loading…
Cancel
Save