mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fix a funny bug
When we create a summary table and uncheck the option "adjust the size of the table to the folio" an infinity of new diagram are added to the project.
This commit is contained in:
@@ -79,10 +79,9 @@ void QetGraphicsTableFactory::create(Diagram *diagram, AddTableDialog *dialog)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Add new table if needed and option checked
|
//Add new table if needed and option checked
|
||||||
dialog->addNewTableToNewDiagram();
|
if (dialog->addNewTableToNewDiagram()
|
||||||
table_->model()->rowCount();
|
&& table_->displayNRow() > 0
|
||||||
table_->displayNRow();
|
&& table_->model()->rowCount() > table_->displayNRow())
|
||||||
if (dialog->addNewTableToNewDiagram() && table_->model()->rowCount() > table_->displayNRow())
|
|
||||||
{
|
{
|
||||||
auto already_displayed_rows = table_->displayNRow();
|
auto already_displayed_rows = table_->displayNRow();
|
||||||
auto project_ = diagram->project();
|
auto project_ = diagram->project();
|
||||||
|
|||||||
Reference in New Issue
Block a user