Author: gs Date: Fri Jul 13 07:25:31 2007 New Revision: 39378 URL: http://svn.opensuse.org/viewcvs/yast?rev=39378&view=rev Log: check Parent() in wCreate() Modified: branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc?rev=39378&r1=39377&r2=39378&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc Fri Jul 13 07:25:31 2007 @@ -321,10 +321,12 @@ // void NCWidget::wCreate( const wrect & newrect ) { - NCMIL << "wCreate" << endl; - if ( win ) + if ( win ) throw NCError( "wCreate: already have win" ); + if ( !Parent() ) + throw NCError( "wCreate: got no parent" ); + inparent = newrect; if ( skipNoDimWin && inparent.Sze == wsze(0,0) ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org