Fix C type error in paps 0.6.8.

Resolves: rhbz#2256906
This commit is contained in:
Akira TAGOH 2024-01-17 22:30:12 +09:00
parent 740450aa39
commit 10c01b83d5
2 changed files with 27 additions and 23 deletions

View File

@ -310,7 +310,7 @@ index 334d547..72dbaad 100644
+ +
+ para->length = i; + para->length = i;
+ next = g_utf8_offset_to_pointer(para->text, para->length); + next = g_utf8_offset_to_pointer(para->text, para->length);
+ wc = g_utf8_prev_char(next); + wc = g_utf8_get_char(g_utf8_prev_char(next));
+ } else { + } else {
+ pango_layout_set_text(para->layout, para->text, para->length); + pango_layout_set_text(para->layout, para->text, para->length);
+ } + }

View File

@ -1,6 +1,6 @@
Name: paps Name: paps
Version: 0.8.0 Version: 0.8.0
Release: 5%{?dist} Release: 6%{?dist}
License: LGPL-2.0-or-later License: LGPL-2.0-or-later
URL: https://github.com/dov/paps URL: https://github.com/dov/paps
@ -150,6 +150,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p"
%changelog %changelog
* Wed Jan 17 2024 Akira TAGOH <tagoh@redhat.com> - 0.8.0-6
- Fix C type error in paps 0.6.8.
Resolves: rhbz#2256906
* Mon Aug 14 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.8.0-5 * Mon Aug 14 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.8.0-5
- Use fmt in header-only mode in RHEL builds - Use fmt in header-only mode in RHEL builds