Bug 295802 - [ImageSupport] DiagramGenerator paints figures with empty bounds
Summary: [ImageSupport] DiagramGenerator paints figures with empty bounds
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.2   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 2.2.2   Edit
Assignee: Alex Boyko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 03:03 EST by Alex Boyko CLA
Modified: 2010-07-19 12:27 EDT (History)
1 user (show)

See Also:


Attachments
patch (956 bytes, patch)
2009-11-22 03:03 EST, Alex Boyko CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Boyko CLA 2009-11-22 03:03:19 EST
Created attachment 152799 [details]
patch

Figure#paintClientArea() doesn't paint a child figure with empty bounds,
because of the check for empty bounds. (Clipping doesn't help if figure can
paint something although it's bounds is empty - a dot is painted)
DiagramGenerator#paintFigure(Graphics, IFigure) can paint empty bounds figures,
because there no check for empty bounds
Comment 1 Alex Boyko CLA 2009-11-22 03:04:05 EST
Trivial fix committed without review to R2_2_maintenance and head.
Comment 2 Eclipse Webmaster CLA 2010-07-19 12:27:25 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug