Browse Source

Labels and listboxes should not be containers.

David Piuva 4 years ago
parent
commit
e55218f2e1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/DFPSR/gui/components/Label.cpp
  2. 1 1
      Source/DFPSR/gui/components/ListBox.cpp

+ 1 - 1
Source/DFPSR/gui/components/Label.cpp

@@ -50,7 +50,7 @@ Persistent* Label::findAttribute(const ReadableString &name) {
 Label::Label() {}
 
 bool Label::isContainer() const {
-	return true;
+	return false;
 }
 
 void Label::drawSelf(ImageRgbaU8& targetImage, const IRect &relativeLocation) {

+ 1 - 1
Source/DFPSR/gui/components/ListBox.cpp

@@ -53,7 +53,7 @@ ListBox::ListBox() {
 }
 
 bool ListBox::isContainer() const {
-	return true;
+	return false;
 }
 
 static const int textBorderLeft = 6;