lyx: update to 2.2.3.

This commit is contained in:
Juan RP 2017-05-17 12:03:05 +02:00
parent ff9e6ffa04
commit 164d18a5a6
2 changed files with 3 additions and 36 deletions

View file

@ -1,33 +0,0 @@
From 6d375ddeac49ac8c6340398c9797354edca3f5d1 Mon Sep 17 00:00:00 2001
From: Guillaume Munch <gm@lyx.org>
Date: Tue, 20 Dec 2016 00:15:58 +0100
Subject: [PATCH] Fix compilation with Qt5.8dev
---
src/frontends/qt4/GuiViewSource.cpp | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/frontends/qt4/GuiViewSource.cpp b/src/frontends/qt4/GuiViewSource.cpp
index 9c0ea1d707..fe593875e6 100644
--- src/frontends/qt4/GuiViewSource.cpp
+++ src/frontends/qt4/GuiViewSource.cpp
@@ -218,14 +218,9 @@ void ViewSourceWidget::updateView(BufferView const * bv)
if (changed && !texrow_) {
// 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
c.setPosition(pos);
--
2.12.2

View file

@ -1,7 +1,7 @@
# Template file for 'lyx'
pkgname=lyx
version=2.2.2
revision=5
version=2.2.3
revision=1
build_style=gnu-configure
configure_args="--enable-qt5 --without-included-mythes --without-included-boost"
short_desc="The Document Processor WYSIWYM Editor & Latex frontend"
@ -12,4 +12,4 @@ makedepends="file-devel boost-devel mythes-devel enchant-devel qt5-svg-devel"
depends="virtual?texlive GraphicsMagick"
homepage="http://www.lyx.org/Home"
distfiles="ftp://ftp.lyx.org/pub/${pkgname}/stable/2.2.x/${pkgname}-${version}.tar.xz"
checksum=a85c3d7412c4069f8a1f5af4eb172948ae9a50394602f6318ab5c8e990aa5568
checksum=4fcaeb7c202472d9ea21bf826fb30541015fef33e7217eda2be2b5d589c82b57