mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
Make sure oldRange is always initialized.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18295 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
21c7ad8c5b
commit
4a1b359b79
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-12-31 00:37 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):
|
||||
Make sure oldRange is always initialized.
|
||||
|
||||
2003-12-30 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBundleAdditions.m (-pathForNibResource:) ignore
|
||||
|
|
|
@ -2668,13 +2668,15 @@ afterString in order over charRange.
|
|||
if (stillSelectingFlag == YES)
|
||||
{
|
||||
/* Store the original range before the interactive selection
|
||||
process begin. That's because we will need to ask the delegate
|
||||
process begin. That's because we will need to ask the delegate
|
||||
if it's all right for him to do the change, and then notify
|
||||
him we did. In both cases, we need to post the original selection
|
||||
together with the new one. */
|
||||
if (_layoutManager->_original_selected_range.location == NSNotFound)
|
||||
{
|
||||
_layoutManager->_original_selected_range = _layoutManager->_selected_range;
|
||||
oldRange
|
||||
= _layoutManager->_original_selected_range
|
||||
= _layoutManager->_selected_range;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue