Adjust mark display for vertical rulers.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21822 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2005-10-14 10:57:09 +00:00
parent 7dda819713
commit a360bbba59
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-10-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSRulerVeiw.m (-drawHashMarksAndLabelsInRect:): For
vertical rulers use ruler hickness to position labels. Patch by Saso
Kiselkov <diablos@manga.sk>.
2005-10-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSServicesManager.m: Improve handling of port registration

View file

@ -753,7 +753,7 @@ static NSMutableDictionary *units = nil;
}
else
{
labelPosition.x = baselineLocation + LABEL_MARK_SIZE + 4 - size.width;
labelPosition.x = baselineLocation + _ruleThickness - size.width;
labelPosition.y = labelLocation + 1;
}
[labelString drawAtPoint: labelPosition withAttributes: attr];