Skip to content

Commit

Permalink
[Spreadsheet] [skip ci] fix bug where aliases renamed in the spreadsh…
Browse files Browse the repository at this point in the history
…eet were not getting renamed in sketcher constraints
  • Loading branch information
mwganson authored and wwmayer committed Mar 22, 2020
1 parent 4d9090f commit 40f5073
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp
Expand Up @@ -41,6 +41,7 @@
#include <App/Range.h>
#include <Gui/MainWindow.h>
#include <Gui/Application.h>
#include <Gui/CommandT.h>
#include <Gui/Document.h>
#include <Gui/ExpressionCompleter.h>
#include <App/DocumentObject.h>
Expand Down Expand Up @@ -357,7 +358,10 @@ void SheetView::editingFinished()
Base::Console().Error("Unable to set alias: %s\n", Base::Tools::toStdString(str).c_str());
}
} else {
cell->setAlias(str.toStdString());
std::string address = CellAddress(i.row(), i.column()).toString();
Gui::cmdAppObjectArgs(sheet, "setAlias('%s', '%s')",
address, str.toStdString());
Gui::cmdAppDocument(sheet->getDocument(), "recompute()");
}
}
ui->cells->setCurrentIndex(ui->cellContent->next());
Expand Down

0 comments on commit 40f5073

Please sign in to comment.