mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02: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:
parent
ce21a812c0
commit
6f4122f65c
@ -79,10 +79,9 @@ void QetGraphicsTableFactory::create(Diagram *diagram, AddTableDialog *dialog)
|
||||
}
|
||||
|
||||
//Add new table if needed and option checked
|
||||
dialog->addNewTableToNewDiagram();
|
||||
table_->model()->rowCount();
|
||||
table_->displayNRow();
|
||||
if (dialog->addNewTableToNewDiagram() && table_->model()->rowCount() > table_->displayNRow())
|
||||
if (dialog->addNewTableToNewDiagram()
|
||||
&& table_->displayNRow() > 0
|
||||
&& table_->model()->rowCount() > table_->displayNRow())
|
||||
{
|
||||
auto already_displayed_rows = table_->displayNRow();
|
||||
auto project_ = diagram->project();
|
||||
|
Loading…
x
Reference in New Issue
Block a user