Bug 168314 - Snippet 252 a bit confusing
Summary: Snippet 252 a bit confusing
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-12-16 02:52 EST by Ian Bull CLA
Modified: 2007-06-05 16:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Bull CLA 2006-12-16 02:52:34 EST
Snippet 252 (the one posted on the N&N for M4) sets a line width of 1/2.  Since these
are both integers, it does the division first and then the cast.  This sets the line style
to 0.0.  I assume (since the N&N says something about fractional line width) you meant
1/2f.
Comment 1 Carolyn MacLeod CLA 2006-12-18 12:24:35 EST
Fixed > 20061218.

Yep, you're right. Thank-you!