- Added Qt58.patch to fix build with Qt 5.8
OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=131
This commit is contained in:
parent
60cc7a8da9
commit
4d9ee6e533
19
Qt58.patch
Normal file
19
Qt58.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Index: src/frontends/qt4/GuiViewSource.cpp
|
||||
===================================================================
|
||||
--- src/frontends/qt4/GuiViewSource.cpp (revision adb00dbcf803298651609c0afac02bc4cb3db003)
|
||||
+++ src/frontends/qt4/GuiViewSource.cpp (revision 9f2fcf20a51af2b63161a3290cf5fb02474b42b9)
|
||||
@@ -224,12 +224,7 @@
|
||||
// position-to-row is unavailable
|
||||
// we jump to the first modification
|
||||
- const QChar * oc = old.constData();
|
||||
- const QChar * nc = qcontent.constData();
|
||||
+ int length = min(old.length(), qcontent.length());
|
||||
int pos = 0;
|
||||
- while (*oc != '\0' && *nc != '\0' && *oc == *nc) {
|
||||
- ++oc;
|
||||
- ++nc;
|
||||
- ++pos;
|
||||
- }
|
||||
+ for (; pos < length && old.at(pos) == qcontent.at(pos); ++pos) {}
|
||||
QTextCursor c = QTextCursor(viewSourceTV->document());
|
||||
//get some space below the cursor
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 1 22:22:17 UTC 2017 - cornelis@solcon.nl
|
||||
|
||||
- Added Qt58.patch to fix build with Qt 5.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 19 15:06:07 UTC 2017 - mailaender@opensuse.org
|
||||
|
||||
|
3
lyx.spec
3
lyx.spec
@ -27,6 +27,8 @@ Source: ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/lyx-%{version}.tar.xz
|
||||
Source1: lyxrc.dist
|
||||
Source2: lyx.keyring
|
||||
Source3: ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/lyx-%{version}.tar.xz.sig
|
||||
# PATCH-FIX-UPSTREAM: fix for build with Qt 5.8
|
||||
Patch0: Qt58.patch
|
||||
#!BuildIgnore: lyx
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -128,6 +130,7 @@ document under "Help" on the menubar.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
|
||||
%build
|
||||
#./autogen.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user