From 203e44ee877e95dfa1775056442ebe1db208043f Mon Sep 17 00:00:00 2001 From: Gavin MacGregor Date: Sun, 12 Jan 2025 15:06:35 +0000 Subject: [PATCH] Fix pixel 1:2 aspect ratio not being remembered --- src/qteletextmaker/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qteletextmaker/mainwindow.cpp b/src/qteletextmaker/mainwindow.cpp index f20189e..362ef58 100644 --- a/src/qteletextmaker/mainwindow.cpp +++ b/src/qteletextmaker/mainwindow.cpp @@ -971,7 +971,7 @@ void MainWindow::readSettings() m_viewBorder = (m_viewBorder < 0 || m_viewBorder > 2) ? 2 : m_viewBorder; m_borderActs[m_viewBorder]->setChecked(true); m_viewAspectRatio = settings.value("aspectratio", 0).toInt(); - m_viewAspectRatio = (m_viewAspectRatio < 0 || m_viewAspectRatio > 2) ? 0 : m_viewAspectRatio; + m_viewAspectRatio = (m_viewAspectRatio < 0 || m_viewAspectRatio > 3) ? 0 : m_viewAspectRatio; m_aspectRatioActs[m_viewAspectRatio]->setChecked(true); m_viewSmoothTransform = settings.value("smoothTransform", 0).toBool(); m_smoothTransformAction->blockSignals(true);