patchDotGNU Portable.NET - Patches: patch #3512, correct a off-by-one display bug...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3512: correct a off-by-one display bug in Graphics.DrawString

Submitter:  Erich Kitzmüller <ammoq>
Submitted:  Wed 10 Nov 2004 12:58:52 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Tue 07 Dec 2004 11:58:56 AM UTC, comment #2: 

I think it is simply caused by the "- 1" in line 1496-1497,
though I'm not sure what ConvertRectangle does:

// convert the layout into device coordinates
                Point[] rect = ConvertRectangle
                    ((layoutRectangle.X + baseWindow.X),
                     (layoutRectangle.Y + baseWindow.Y),
                     (layoutRectangle.Width - 1),
                     (layoutRectangle.Height - 1),
                     pageUnit);

Erich Kitzmüller <ammoq>
Tue 07 Dec 2004 11:30:28 AM UTC, comment #1: 

Applied to CVS on 7th Dec 2004.

Apparently this is simply a workaround to fix the problem.
More investigation needs to be done to figure out the real
reason why it is one off.

Gopal.V <t3rmin4t0r>
Group administrator
Wed 10 Nov 2004 12:58:52 PM UTC, original submission:  

Because of this bug, in MenuItems as well as in table Cells of SourceGridMini (yes, it works in portable.net) the last character of the String was not displayed.

Erich Kitzmüller <ammoq>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #8032:  Graphics.cs.patch added by ammoq (481B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-07 t3rmin4t0r StatusNone Done
    Open/ClosedOpen Closed
2004-11-10 ammoq Attached File- Added Graphics.cs.patch, #3868

Back to the top

Powered by Savane 3.13-0329.
Corresponding source code