Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41682 - /branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Wed, 31 Oct 2007 13:04:49 -0000
  • Message-id: <20071031130449.AC4EC2FC1E@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages