[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#965379: FBreader: Sometimes draws hyphens after each word



Good day.

This bug occurs because field flags of variable myAnalysis is not initialized. And therefore flag PANGO_ANALYSIS_FLAG_NEED_HYPHEN of this field randomly set or clear.

Sincerelly yours, Siarhei Abmiotka.


Description: Fix random bug: hyphenation after each word
Author: Siarhei Abmiotka <photos.liquidvacuum@gmail.com>
Last-Update: 2022-01-26

Index: zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp
===================================================================
--- fbreader.orig/zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp
+++ fbreader/zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp
@@ -54,6 +54,7 @@ ZLGtkPaintContext::ZLGtkPaintContext() {
 	myFontDescription = 0;
 	myAnalysis.lang_engine = 0;
 	myAnalysis.level = 0;
+	myAnalysis.flags = 0;
 	myAnalysis.language = 0;
 	myAnalysis.extra_attrs = 0;
 	myString = pango_glyph_string_new();

Reply to: