[yast-commit] r41682 - /branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc
Author: gs Date: Wed Oct 31 14:04:49 2007 New Revision: 41682 URL: http://svn.opensuse.org/viewcvs/yast?rev=41682&view=rev Log: add _header.assign( ) in setHeader() Modified: branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc?rev=41682&r1=41681&r2=41682&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc Wed Oct 31 14:04:49 2007 @@ -127,12 +127,8 @@ void NCTable::setHeader( int col, const string & text ) { - //YTable::setHeader( col, text ); + _header[ col ] += NCstring( text ) ; - if ( hasColumn( col )) - { - _header[ col ] += NCstring( text ) ; - } hasHeadline = myPad()->SetHeadline( _header ); } @@ -148,6 +144,7 @@ void NCTable::setHeader( vector<string> head ) { + _header.assign( head.size(), NCstring("") ); for (unsigned int i = 0; i < head.size(); i++) { setHeader( i, head[i] ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org