Browse Source

patch

master
despair 4 years ago
parent
commit
f88c8fce44
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/graphics/components/ButtonComponent.cpp

+ 1
- 1
src/graphics/components/ButtonComponent.cpp View File

@@ -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