http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252015-04-20T11:18:49ZRedmineWt - Bug #3993: [wt-3.3.4] Crash on WTable::insertColumn()http://redmine.emweb.be/issues/3993?journal_id=114322015-04-20T11:18:49ZСтойчо Стефанов Stoycho Stefanov
<ul></ul><p>Of course, there are other ways to achieve the inserting, but the method has to work as well:</p>
<pre><code>int insertIndex(0);
table->elementAt(table->rowCount()-1,table->columnCount());
table->moveColumn(table->columnCount()-1,insertIndex);
</code></pre> Wt - Bug #3993: [wt-3.3.4] Crash on WTable::insertColumn()http://redmine.emweb.be/issues/3993?journal_id=114392015-04-21T11:43:19ZСтойчо Стефанов Stoycho Stefanov
<ul><li><strong>File</strong> <a href="/attachments/1844">WTable_moveColumn.cpp</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1844/WTable_moveColumn.cpp">WTable_moveColumn.cpp</a> added</li></ul><p>I get segmentation fault on moving column that contains the "header" cell (i.e., a cell spanned over all columns) too.</p>
<p>The lines that are commented out fix the problem.</p>
<p>Perhaps moveColumn should shrink spanned cells before moving?</p>
<p>Regards,<br><br>
Stoycho</p>
Wt - Bug #3993: [wt-3.3.4] Crash on WTable::insertColumn()http://redmine.emweb.be/issues/3993?journal_id=114672015-04-23T09:01:19ZWim Dumonwim@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>Hello,</p>
<p>I fixed the bug related to insertColumns(). Without this fix insertColumns() is broken in 3.3.4 unless you add columns at the end.</p>
<p>For the moveColumns() case, since WTable will usually add columns/rows in order to resolve issues related to the size of the table, I also made moveColumn() add extra columns if a span requires it. And I also did the same for moveRows().</p>
<p>Wim.</p>
Wt - Bug #3993: [wt-3.3.4] Crash on WTable::insertColumn()http://redmine.emweb.be/issues/3993?journal_id=129482015-09-10T20:03:09ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>