mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 23:30:48 +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
057a8aed89
commit
ef27badea4
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>
|
2005-10-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSServicesManager.m: Improve handling of port registration
|
* Source/GSServicesManager.m: Improve handling of port registration
|
||||||
|
|
|
@ -753,7 +753,7 @@ static NSMutableDictionary *units = nil;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
labelPosition.x = baselineLocation + LABEL_MARK_SIZE + 4 - size.width;
|
labelPosition.x = baselineLocation + _ruleThickness - size.width;
|
||||||
labelPosition.y = labelLocation + 1;
|
labelPosition.y = labelLocation + 1;
|
||||||
}
|
}
|
||||||
[labelString drawAtPoint: labelPosition withAttributes: attr];
|
[labelString drawAtPoint: labelPosition withAttributes: attr];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue