Cary Sandvig 25 years ago
parent
commit
c5e5251a80
1 changed files with 2 additions and 8 deletions
  1. 2 8
      panda/src/gui/guiLabel.I

+ 2 - 8
panda/src/gui/guiLabel.I

@@ -36,10 +36,7 @@ INLINE void GuiLabel::set_width(float f) {
     _width = 0.;
     _width = 0.;
   } else {
   } else {
     _have_width = true;
     _have_width = true;
-    if (_type == MODEL)
-      _width = f / _model_width;
-    else
-      _width = f;
+    _width = f;
   }
   }
   this->set_properties();
   this->set_properties();
 }
 }
@@ -50,10 +47,7 @@ INLINE void GuiLabel::set_height(float f) {
     _height = 0.;
     _height = 0.;
   } else {
   } else {
     _have_height = true;
     _have_height = true;
-    if (_type == MODEL)
-      _height = f / _model_height;
-    else
-      _height = f;
+    _height = f;
   }
   }
   this->set_properties();
   this->set_properties();
 }
 }