Selection fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7235 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-08-23 17:33:12 +00:00
parent 34a5c0f0a9
commit f2a24a9a32
2 changed files with 10 additions and 3 deletions

View file

@ -1008,7 +1008,7 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
// handle case where single word is broader than width
// (buckle word) <!> unfinished and untested
// for richText (absolute position see above)
if (advanceSize.width >= width)
if (advanceSize.width > width)
{
if (isBuckled)
{
@ -1029,7 +1029,7 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
inBuckling = YES;
scannerPosition
= localLineStartIndex
+ (lastVisibleCharIndex - startingLineCharIndex);
+ (lastVisibleCharIndex - startingLineCharIndex)+1;
currentLineRect.size.width = advanceSize.width = width;
}
else
@ -2145,7 +2145,7 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
{
newWidth = textRect.size.width;
}
else if (_tf.is_vertically_resizable)
if (_tf.is_vertically_resizable)
{
newHeight = textRect.size.height;
}