Commit ebda9cf5 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

Check clipRect validity before altering its width

CCBUG: 302197
parent 45472424
......@@ -2178,10 +2178,8 @@ namespace Oxygen
} else if( d.isCheck() && ( GTK_IS_CHECK_MENU_ITEM( widget ) || /* for LibreOffice */GTK_IS_MENU_ITEM( widget ) ) ) {
// Fix cliprect for LibreOffice
if(GTK_IS_MENU_ITEM(widget))
{
++clipRect->width;
}
if( clipRect && GTK_IS_MENU_ITEM(widget))
{ ++clipRect->width; }
StyleOptions options( widget, state, shadow );
options |= (Blend|Flat|NoFill);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment