diff --git a/lib/jkqtplotter/jkqtpkey.cpp b/lib/jkqtplotter/jkqtpkey.cpp index 3c4fdfbd25..d9e3b8fc9f 100644 --- a/lib/jkqtplotter/jkqtpkey.cpp +++ b/lib/jkqtplotter/jkqtpkey.cpp @@ -292,7 +292,7 @@ JKQTPBaseKey::KeyLayoutDescription JKQTPBaseKey::getKeyLayout(JKQTPEnhancedPaint layout.columns.append(allItems); } else if (keyStyle().layout==JKQTPKeyLayoutOneRow || keyStyle().layout==JKQTPKeyLayoutMultiRow) { for (const auto& r: allItems.rows) { - layout.columns.emplaceBack(r); + layout.columns.push_back(KeyColumnDescription(r)); } } @@ -460,7 +460,7 @@ void JKQTPBaseKey::KeyLayoutDescription::redistributeOverRows(int rowCnt) int i=0; for (int c=0; c