From d44a579e921189b0968bf06acc5f58f6b1c506f3 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sun, 14 Jan 2018 21:33:15 +0300 Subject: [PATCH] FontEditor has been fixed --- limereport/items/editors/lrfonteditorwidget.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/limereport/items/editors/lrfonteditorwidget.cpp b/limereport/items/editors/lrfonteditorwidget.cpp index 6787e90..28212f5 100644 --- a/limereport/items/editors/lrfonteditorwidget.cpp +++ b/limereport/items/editors/lrfonteditorwidget.cpp @@ -169,14 +169,18 @@ void FontEditorWidgetForDesigner::slotFontChanged(const QFont& font) void FontEditorWidgetForDesigner::slotFontSizeChanged(const QString& value) { - FontEditorWidget::slotFontSizeChanged(value); - m_reportEditor->setFont(resFont()); + if (!ignoreSlots()){ + FontEditorWidget::slotFontSizeChanged(value); + m_reportEditor->setFont(resFont()); + } } void FontEditorWidgetForDesigner::slotFontAttribsChanged(bool value) { - FontEditorWidget::slotFontAttribsChanged(value); - m_reportEditor->setFont(resFont()); + if (!ignoreSlots()){ + FontEditorWidget::slotFontAttribsChanged(value); + m_reportEditor->setFont(resFont()); + } } #endif