Spreadsheet: fix range checking (#6997)
* App: add option to normalize a Range - To make sure the range starts from top left and ends with bottom right corner. - Default is to not normalize on construction for backward compatibility. - fix range checking in range binding
This commit is contained in:
@@ -188,8 +188,8 @@ void DlgBindSheet::accept()
|
||||
else {
|
||||
checkAddress(toEnd, toCellEnd, true);
|
||||
if (toCellStart.isValid()) {
|
||||
App::Range fromRange(fromCellStart, fromCellEnd);
|
||||
App::Range toRange(toCellStart, toCellEnd);
|
||||
App::Range fromRange(fromCellStart, fromCellEnd, true);
|
||||
App::Range toRange(toCellStart, toCellEnd, true);
|
||||
if (fromRange.size() != toRange.size()) {
|
||||
auto res = QMessageBox::warning(this, tr("Bind cells"),
|
||||
tr("Source and target cell count mismatch. Partial binding may still work.\n\n"
|
||||
|
||||
Reference in New Issue
Block a user