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

@ -2674,7 +2674,9 @@ afterString in order over charRange.
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