diff --git a/sources/diagramcontextwidget.cpp b/sources/diagramcontextwidget.cpp index e2b5afcf7..b03d4bd04 100644 --- a/sources/diagramcontextwidget.cpp +++ b/sources/diagramcontextwidget.cpp @@ -20,6 +20,7 @@ #include #include #include +#include /** Constructor @@ -171,7 +172,7 @@ void DiagramContextWidget::initWidgets() { format_label -> setWordWrap(true); format_label -> setAlignment(Qt::AlignJustify); - table_ = new QTableWidget(0, 2); + table_ = new QTableWidget(1, 2); table_ -> setSelectionMode(QAbstractItemView::SingleSelection); table_ -> setHorizontalHeaderLabels(QStringList() << tr("Nom", "table header") << tr("Valeur", "table header")); table_ -> horizontalHeader() -> setStretchLastSection(true);