Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gadget: Be careful in geometry calculations
Margins can be negative, and if we are not careful, then content+padding+margin can end up with negative dimensions, which can upset pixman and others. This commit ensures that a gadget will not request or draw boxes with negative dimensions, and get_border_allocation and get_content_allocation will not return boxes with negative dimensions. This fixes a crash in the paned separator drawing code that can be reproduced by setting separator padding to 0. https://bugzilla.gnome.org/show_bug.cgi?id=759657
- Loading branch information
Matthias Clasen
committed
Feb 13, 2016
1 parent
71559c6
commit 51af704
Showing
1 changed file
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters