Bug 82386 - [consistency] specifying negative dimensions should be valid
Summary: [consistency] specifying negative dimensions should be valid
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: consistency
Depends on:
Blocks:
 
Reported: 2005-01-07 11:05 EST by Grant Gayed CLA
Modified: 2020-06-01 10:47 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2005-01-07 11:05:12 EST
I cannot provide a simple case of this, but I did have an easily reproducable 
case while developing the new emulated Tree, so I probably can still reproduce 
this if needed.

Each TreeItem invokes GC.setClipping(int,int,int,int) when preparing to paint.  
In the problem case there was a negative width value being passed as an 
argument, and this would eventually lead to a GP.  Negative values should 
probably be clamped to 0.
Comment 1 Grant Gayed CLA 2005-01-07 16:24:55 EST
Fixed > 0107.  Based on win32 behaviour, specifying a negative width and/or 
height is fine, it just means that the resulting rectangle will reside to the 
left and/or above the specified x,y corner.  Some platforms were handling this 
fine (ie.- like win32) while others seemed to be clamping negative dimensions 
to 0 under the covers.  So made all platforms consistently behave like win32 
now.
Comment 2 Grant Gayed CLA 2005-01-07 16:31:57 EST
Reopening report since this issue probably exists in other api as well.  Should 
do a consistency pass.
Comment 3 Steve Northover CLA 2005-01-19 20:09:55 EST
GG do you want to take this one as part of consistency?  I'm giving it to SSQ 
for now because he noticed this when browsing changes.
Comment 4 Eclipse Genie CLA 2020-06-01 10:47:25 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.