* Source/NSTextView.m (-setRulersVisible:): Create a horizontal ruler on

the scroll view if needed - this seems to be the OS X behaviour.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32932 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2011-04-27 04:00:33 +00:00
parent a0317c6ad6
commit 7b28e1771c
2 changed files with 9 additions and 0 deletions

View file

@ -1448,6 +1448,10 @@ to make sure syncing is handled properly in all cases.
_tf.is_ruler_visible = flag;
if (sv != nil)
{
if (_tf.is_ruler_visible && ![sv hasHorizontalRuler])
{
[sv setHasHorizontalRuler: YES];
}
[sv setRulersVisible: _tf.is_ruler_visible];
}
}