Make sure the typing attributes are always a mutable dictionary that we can modify.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15724 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-01-26 19:42:03 +00:00
parent 66c63d5580
commit 5b78652c15

View file

@ -707,7 +707,7 @@ to this method from the text container or layout manager.
/* There is no text network, and the layout manager's attributes
might not be set up. We reset them to standard values. */
DESTROY(_layoutManager->typingAttributes);
DESTROY(_layoutManager->_typingAttributes);
_layoutManager->_typingAttributes = [[isa defaultTypingAttributes] mutableCopy];
_layoutManager->_original_selected_range.location = NSNotFound;