X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a589495eeb083bee99e4c92f8ff4e12457ca82bb..422d0ff0bec79832494fe4605ffdcf8e87ba6c03:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 8e6e0f5a81..8947ad7008 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3575,10 +3575,9 @@ void wxWindowGTK::GetTextExtent( const wxString& string, pango_layout_set_text(layout, (const char*) data, strlen( (const char*) data )); #endif } - PangoLayoutLine *line = pango_layout_get_line(layout, 0); PangoRectangle rect; - pango_layout_line_get_extents(line, NULL, &rect); + pango_layout_get_extents(layout, NULL, &rect); if (x) (*x) = (wxCoord) PANGO_PIXELS(rect.width); if (y) (*y) = (wxCoord) PANGO_PIXELS(rect.height);