Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions reader/browser/SheetBrowser.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd.
// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
Expand Down Expand Up @@ -891,8 +891,6 @@ void SheetBrowser::deform(SheetOperation &operation)
qCDebug(appLog) << "Deforming view with scale factor:" << operation.scaleFactor
<< "mode:" << operation.scaleMode << "rotation:" << operation.rotation;

m_lastScaleFactor = operation.scaleFactor;

const qreal safeMaxWidth = qFuzzyIsNull(m_maxWidth) ? 1.0 : m_maxWidth;
const qreal safeMaxHeight = qFuzzyIsNull(m_maxHeight) ? (qFuzzyIsNull(m_maxWidth) ? 1.0 : m_maxWidth) : m_maxHeight;

Expand Down Expand Up @@ -935,6 +933,8 @@ void SheetBrowser::deform(SheetOperation &operation)
break;
}

m_lastScaleFactor = operation.scaleFactor;

int page = operation.currentPage;
//进行render 并算出最宽的一行
double maxWidth = 0; //最宽的一行
Expand Down
Loading