Skip to content

Commit 20f481a

Browse files
mgrojolucydodo
authored andcommitted
Table Browser: do not include a text end of line in a single cell copy
See issue #3735
1 parent f89097c commit 20f481a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ExtendedTableWidget.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,10 @@ void ExtendedTableWidget::copyMimeData(const QModelIndexList& fromIndices, QMime
744744
htmlResult.append("</table></body></html>");
745745
mimeData->setHtml(htmlResult);
746746
}
747+
// Single cells should only contain the value, not an ending row separator.
748+
if (indices.size() == 1) {
749+
result.resize(result.size() - rowSepText.size());
750+
}
747751
mimeData->setText(result);
748752
}
749753

0 commit comments

Comments
 (0)