diff --git a/Graphs/gLineChart.cpp b/Graphs/gLineChart.cpp index 0c2ad4e2..bdc64fa4 100644 --- a/Graphs/gLineChart.cpp +++ b/Graphs/gLineChart.cpp @@ -42,7 +42,7 @@ EventDataType gLineChart::Miny() int m=Layer::Miny(); if (subtract_offset>0) { m-=subtract_offset; - if (m<0) m=0; + // if (m<0) m=0; } return m; } diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 44922130..72d8e039 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -88,7 +88,7 @@ void SummaryChart::SetDay(Day * nullday) } if (suboffset>0) { tmp-=suboffset; - if (tmp<0) tmp=0; + //if (tmp<0) tmp=0; } //if (tmp>0) { fnd=true; diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index 2bf0e9bf..97895cd6 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -42,21 +42,25 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) : ui->IgnoreSlider->setValue(val); ui->applicationFont->setCurrentFont(QApplication::font()); + ui->applicationFont->setFont(QApplication::font()); ui->applicationFontSize->setValue(QApplication::font().pointSize()); ui->applicationFontBold->setChecked(QApplication::font().weight()==QFont::Bold); ui->applicationFontItalic->setChecked(QApplication::font().italic()); ui->graphFont->setCurrentFont(*defaultfont); + ui->graphFont->setFont(*defaultfont); ui->graphFontSize->setValue(defaultfont->pointSize()); ui->graphFontBold->setChecked(defaultfont->weight()==QFont::Bold); ui->graphFontItalic->setChecked(defaultfont->italic()); ui->titleFont->setCurrentFont(*mediumfont); + ui->titleFont->setFont(*mediumfont); ui->titleFontSize->setValue(mediumfont->pointSize()); ui->titleFontBold->setChecked(mediumfont->weight()==QFont::Bold); ui->titleFontItalic->setChecked(mediumfont->italic()); ui->bigFont->setCurrentFont(*bigfont); + ui->bigFont->setFont(*bigfont); ui->bigFontSize->setValue(bigfont->pointSize()); ui->bigFontBold->setChecked(bigfont->weight()==QFont::Bold); ui->bigFontItalic->setChecked(bigfont->italic());