From 1c8f24439baf33fc22649b31043f147b7c83594b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 25 Dec 2025 23:22:28 +0900 Subject: Fix TQString formatting in 'KviTQString::sprintf'. This was causing translation catalouges not to be found and eventually the program to always display in English. The problem was introduced by an automated Q --> TQ renaming done sometime in the past. 'KviTQString::sprintf' uses '%Q' as a marker for a TQString* argument, so using '%TQ' was resulting in garbage bytes being fed and the catalouges not being found. This resolves issue #44. Signed-off-by: Michele Calgaro --- src/modules/raweditor/raweditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/raweditor/raweditor.cpp') diff --git a/src/modules/raweditor/raweditor.cpp b/src/modules/raweditor/raweditor.cpp index a1221d7..9b3662c 100644 --- a/src/modules/raweditor/raweditor.cpp +++ b/src/modules/raweditor/raweditor.cpp @@ -196,7 +196,7 @@ void KviRawEditor::getUniqueHandlerName(KviRawListViewItem *it,TQString &buffer) if(KviTQString::equalCI(newName,ch->m_szName)) { bFound = true; - KviTQString::sprintf(newName,"%TQ_%d",&buffer,idx); + KviTQString::sprintf(newName,"%Q_%d",&buffer,idx); idx++; break; } -- cgit v1.2.3