forked from AuroraMiddleware/gtk
textlayout: Allow querying empty areas
This only happens when the textview has no content, but it does happen now that such a textview gets allocated 0x0 and not 1x1.
This commit is contained in:
parent
c04190e761
commit
4b07d28153
@ -722,7 +722,9 @@ gtk_text_layout_get_lines (GtkTextLayout *layout,
|
||||
GSList *retval;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_TEXT_LAYOUT (layout), NULL);
|
||||
g_return_val_if_fail (bottom_y > top_y, NULL);
|
||||
|
||||
if (top_y <= bottom_y)
|
||||
return NULL;
|
||||
|
||||
retval = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user