mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-09 05:24:14 +02:00
Merge pull request #1383 from bhangart/fix/conductor-size-settings
Read the default conductor width from the settings as a decimal
This commit is contained in:
@@ -436,7 +436,10 @@ void ConductorProperties::fromSettings(QSettings &settings, const QString &prefi
|
||||
m_wire_color = settings.value(prefix + "conductor_color", "").toString();
|
||||
m_wire_section = settings.value(prefix + "conductor_section", "").toString();
|
||||
text_size = settings.value(prefix + "textsize", "7").toInt();
|
||||
cond_size = settings.value(prefix + "size", "1").toInt();
|
||||
// Saved with QString::number(cond_size): a decimal such as 1.4,
|
||||
// which toInt() would read as 0.
|
||||
cond_size = settings.value(prefix + "size", "1").toDouble();
|
||||
if (!qIsFinite(cond_size) || cond_size <= 0) cond_size = 1;
|
||||
m_show_text = settings.value(prefix + "displaytext", true).toBool();
|
||||
m_one_text_per_folio = settings.value(prefix + "onetextperfolio", false).toBool();
|
||||
verti_rotate_text = settings.value((prefix + "vertirotatetext"), "270").toDouble();
|
||||
|
||||
Reference in New Issue
Block a user