Add patch to fix crash when opening language manager
This commit is contained in:
parent
48c4630e0a
commit
457a70b9d0
|
@ -0,0 +1,26 @@
|
||||||
|
From 7a98248b0ce16c07b50587add3f9cef2d6883726 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sandro Mani <manisandro@gmail.com>
|
||||||
|
Date: Mon, 1 Jul 2019 18:15:36 +0200
|
||||||
|
Subject: [PATCH] [Gtk] Catch case where download_url is null
|
||||||
|
|
||||||
|
---
|
||||||
|
gtk/src/TessdataManager.cc | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/gtk/src/TessdataManager.cc b/gtk/src/TessdataManager.cc
|
||||||
|
index 48ff2d8..204817c 100644
|
||||||
|
--- a/gtk/src/TessdataManager.cc
|
||||||
|
+++ b/gtk/src/TessdataManager.cc
|
||||||
|
@@ -160,6 +160,9 @@ bool TessdataManager::fetchLanguageList(Glib::ustring& messages) {
|
||||||
|
JsonNode* value = static_cast<JsonNode*>(l->data);
|
||||||
|
JsonObject* treeObj = json_node_get_object(value);
|
||||||
|
Glib::ustring fileName = json_object_get_string_member(treeObj, "name");
|
||||||
|
+ if(!json_object_get_string_member(treeObj, "download_url")) {
|
||||||
|
+ continue;
|
||||||
|
+ }
|
||||||
|
Glib::ustring url = json_object_get_string_member(treeObj, "download_url");
|
||||||
|
Glib::ustring subdir;
|
||||||
|
// If filename starts with upper case letter, it is a script
|
||||||
|
--
|
||||||
|
2.22.0
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
Name: gimagereader
|
Name: gimagereader
|
||||||
Version: 3.3.0
|
Version: 3.3.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A front-end to tesseract-ocr
|
Summary: A front-end to tesseract-ocr
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/manisandro/gimagereader
|
URL: https://github.com/manisandro/gimagereader
|
||||||
Source0: https://github.com/manisandro/gimagereader/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
Source0: https://github.com/manisandro/gimagereader/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
# Backport patch to fix crash when opening language manager
|
||||||
|
Patch0: 0001-Gtk-Catch-case-where-download_url-is-null.patch
|
||||||
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: djvulibre-devel
|
BuildRequires: djvulibre-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
@ -40,6 +43,7 @@ BuildRequires: qtspell-qt5-devel
|
||||||
BuildRequires: quazip-qt5-devel
|
BuildRequires: quazip-qt5-devel
|
||||||
|
|
||||||
Requires: hicolor-icon-theme
|
Requires: hicolor-icon-theme
|
||||||
|
Requires: gvfs
|
||||||
|
|
||||||
%description
|
%description
|
||||||
gImageReader is a simple front-end to tesseract. Features include:
|
gImageReader is a simple front-end to tesseract. Features include:
|
||||||
|
@ -142,6 +146,10 @@ cd build_qt
|
||||||
%{_datadir}/applications/%{name}-qt5.desktop
|
%{_datadir}/applications/%{name}-qt5.desktop
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 01 2019 Sandro Mani <manisandro@gmail.com> - 3.3.0-4
|
||||||
|
- Fix crash when opening language manager
|
||||||
|
- Add requires: gvfs
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue