]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
comment out test code
[wxWidgets.git] / src / gtk / dcclient.cpp
index 6022888051ce8cfa903778129f635f3db8589b76..c79e4175d6f8ec223d5d8fb1c10d287086e1c2c0 100644 (file)
@@ -1771,7 +1771,7 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
     }
 
     // Reset old font description
-    if (theFont)
+    if (theFont->IsOk())
         pango_layout_set_font_description( m_layout, m_fontdesc );
 }
 
@@ -1809,7 +1809,6 @@ bool wxWindowDC::DoGetPartialTextExtents(const wxString& text,
     {
         pango_layout_iter_get_cluster_extents(iter, NULL, &pos);
         int position = PANGO_PIXELS(pos.x);
-        size_t curIndex = pango_layout_iter_get_index(iter);
         widths[i++] = position;
     }
     while (i < len)