mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
7dda819713
commit
a360bbba59
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue