Browse Source

crash guard

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

+ 4
- 0
src/graphics/components/ButtonComponent.cpp View File

@@ -128,6 +128,10 @@ void ButtonComponent::resize(const int passedWindowWidth, const int passedWindow
}

void ButtonComponent::resizeToTextSize() {
if (!textLabel) {
std::cout << "ButtonComponent::resizeToTextSize - no textLabel to resize" << std::endl;
return;
}
if (!textLabel->win && this->win) {
textLabel->win = this->win;
}

Loading…
Cancel
Save