mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Bugfix - ignore reassignment of same view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3294 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c836138810
commit
f18ffed561
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@
|
|||
|
||||
- (void)setDocumentView:(NSView*)aView
|
||||
{
|
||||
if (_documentView == aView)
|
||||
return;
|
||||
if (_documentView)
|
||||
[_documentView removeFromSuperview];
|
||||
|
||||
|
|
Loading…
Reference in a new issue