[Spreadsheet] Remove prepended apostrophe if cell content is copied into clipboard (#19781)

* [Spreadsheet] Remove prepended apostrophe if cell content is copied into
clipboard

Closes #10058.
This commit is contained in:
xtemp09
2025-02-27 18:18:57 -03:00
committed by Adrian Insaurralde
parent 0ff7f0f5ff
commit 9bd72d7bb3
@@ -712,6 +712,10 @@ void SheetTableView::_copySelection(const std::vector<App::Range>& ranges, bool
for (int j = minCol; j <= maxCol; j++) {
QModelIndex index = model()->index(i, j);
QString cell = index.data(Qt::EditRole).toString();
if (!cell.isEmpty() && cell.at(0) == QLatin1Char('\'')) {
cell.remove(0, 1);
}
if (j < maxCol) {
cell.append(QChar::fromLatin1('\t'));
}