Browse Source

fix design size, from Clemens Pecinovsky

David Rose 17 years ago
parent
commit
5b4122d2de
1 changed files with 2 additions and 3 deletions
  1. 2 3
      panda/src/text/staticTextFont.cxx

+ 2 - 3
panda/src/text/staticTextFont.cxx

@@ -294,11 +294,10 @@ find_characters(PandaNode *root, const RenderState *net_state) {
     CPT(Geom) dot;
     CPT(Geom) dot;
     const RenderState *state = NULL;
     const RenderState *state = NULL;
     find_character_gsets(root, ch, dot, state, next_net_state);
     find_character_gsets(root, ch, dot, state, next_net_state);
-    if (ch != (Geom *)NULL && dot != (Geom *)NULL) {
+    if (dot != (Geom *)NULL) {
       // Get the first vertex from the "dot" geoset.  This will be the
       // Get the first vertex from the "dot" geoset.  This will be the
       // design size indicator.
       // design size indicator.
-      const Geom *geom = DCAST(Geom, ch);
-      GeomVertexReader reader(geom->get_vertex_data(), InternalName::get_vertex());
+      GeomVertexReader reader(dot->get_vertex_data(), InternalName::get_vertex());
       _line_height = reader.get_data3f()[2];
       _line_height = reader.get_data3f()[2];
       _space_advance = 0.25f * _line_height;
       _space_advance = 0.25f * _line_height;
     }
     }