Browse Source

Labels and listboxes should not be containers.

David Piuva 4 years ago
parent
commit
e55218f2e1

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

@@ -50,7 +50,7 @@ Persistent* Label::findAttribute(const ReadableString &name) {
 Label::Label() {}
 Label::Label() {}
 
 
 bool Label::isContainer() const {
 bool Label::isContainer() const {
-	return true;
+	return false;
 }
 }
 
 
 void Label::drawSelf(ImageRgbaU8& targetImage, const IRect &relativeLocation) {
 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 {
 bool ListBox::isContainer() const {
-	return true;
+	return false;
 }
 }
 
 
 static const int textBorderLeft = 6;
 static const int textBorderLeft = 6;