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:
Alexander Malmberg 2003-12-30 23:40:17 +00:00
parent 21c7ad8c5b
commit 4a1b359b79
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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