1 Star 0 Fork 19

Yukizhu001/qt5-qtbase

forked from src-anolis-os/qt5-qtbase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
qt5-qtbase-fix-bug108222-linewrap-carriage_return-different_rowspacing.patch 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-10-13 02:47 . !8 feature: add patchs for DDE
From 4fd9ee945b281d55569222000ae6a7e33f2d84cc Mon Sep 17 00:00:00 2001
From: Zhang xianting <[email protected]>
Date: Mon, 10 Jan 2022 18:16:31 +0800
Subject: [PATCH] qt5-qtbase fix bug108222 linewrap and carriage_return get different rowspacing.
---
src/gui/text/qtextdocumentlayout.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gui/text/qtextdocumentlayout.cpp b/src/gui/text/qtextdocumentlayout.cpp
index bed0a2c4..7291eca2 100644
--- a/src/gui/text/qtextdocumentlayout.cpp
+++ b/src/gui/text/qtextdocumentlayout.cpp
@@ -2546,7 +2546,7 @@ void QTextDocumentLayoutPrivate::layoutFlow(QTextFrame::Iterator it, QTextLayout
static inline void getLineHeightParams(const QTextBlockFormat &blockFormat, const QTextLine &line, qreal scaling,
QFixed *lineAdjustment, QFixed *lineBreakHeight, QFixed *lineHeight, QFixed *lineBottom)
{
- qreal rawHeight = qCeil(line.ascent() + line.descent() + line.leading());
+ qreal rawHeight = qCeil(line.ascent() + line.descent());
*lineHeight = QFixed::fromReal(blockFormat.lineHeight(rawHeight, scaling));
*lineBottom = QFixed::fromReal(blockFormat.lineHeight(line.height(), scaling));
--
2.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhuzhustu/qt5-qtbase.git
[email protected]:zhuzhustu/qt5-qtbase.git
zhuzhustu
qt5-qtbase
qt5-qtbase
a8

搜索帮助