Browse Source

crash guard

master
Odilitime 5 years ago
parent
commit
4c6257d0cd
  1. 4
      src/graphics/components/ButtonComponent.cpp

4
src/graphics/components/ButtonComponent.cpp

@ -128,6 +128,10 @@ void ButtonComponent::resize(const int passedWindowWidth, const int passedWindow @@ -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