mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11: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
|
@ -1,3 +1,10 @@
|
|||
2000-08-15 Georg Fleischmann
|
||||
|
||||
* gui/Source/NSText.m ([NSText sizeToFit:]): 'else' removed to
|
||||
allow resize of height and width
|
||||
scanRange(): line 1032: +1 to avoid infinite
|
||||
loop for single character line 1011, 1047: '>' instead of '>='
|
||||
|
||||
Thu Aug 17 08:51:45 2000 Adam Fedor <fedor@ultra.doc.com>
|
||||
|
||||
* Headers/gnustep/gui/NSLayoutManager.h: Add hyphenation
|
||||
|
|
|
@ -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…
Reference in a new issue