mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:10:37 +00:00
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:
parent
34a5c0f0a9
commit
f2a24a9a32
2 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue