26 lines
996 B
Diff
26 lines
996 B
Diff
|
|
From 07bf8749800eebde9d9c870678479447a333da1a Mon Sep 17 00:00:00 2001
|
||
|
|
From: peijiankang <peijiankang@kylinos.cn>
|
||
|
|
Date: Mon, 14 Aug 2023 16:11:15 +0800
|
||
|
|
Subject: [PATCH] fix build error about messagemodel
|
||
|
|
|
||
|
|
---
|
||
|
|
tools/linguist/linguist/messagemodel.cpp | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/tools/linguist/linguist/messagemodel.cpp b/tools/linguist/linguist/messagemodel.cpp
|
||
|
|
index 61c5389f..7334e0e9 100644
|
||
|
|
--- a/tools/linguist/linguist/messagemodel.cpp
|
||
|
|
+++ b/tools/linguist/linguist/messagemodel.cpp
|
||
|
|
@@ -183,7 +183,7 @@ static int calcMergeScore(const DataModel *one, const DataModel *two)
|
||
|
|
if (ContextItem *c = one->findContext(oc->context())) {
|
||
|
|
for (int j = 0; j < oc->messageCount(); ++j) {
|
||
|
|
MessageItem *m = oc->messageItem(j);
|
||
|
|
- if (c->findMessage(m->text(), m->comment()) >= 0)
|
||
|
|
+ if (c->findMessage(m->text(), m->comment()))
|
||
|
|
++inBoth;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
--
|
||
|
|
2.33.0
|
||
|
|
|