mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
lyx: update to 2.2.3
This commit is contained in:
parent
9c161133f8
commit
544d0c9b73
17
lyx/PKGBUILD
17
lyx/PKGBUILD
@ -1,6 +1,6 @@
|
|||||||
pkgname=lyx
|
pkgname=lyx
|
||||||
pkgver=2.2.2
|
pkgver=2.2.3
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc="An advanced open-source document processor"
|
pkgdesc="An advanced open-source document processor"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.lyx.org"
|
url="http://www.lyx.org"
|
||||||
@ -12,17 +12,10 @@ optdepends=('texlive-most: TeX Live goodies'
|
|||||||
license=('GPL')
|
license=('GPL')
|
||||||
source=("ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/$pkgname-$pkgver.tar.xz"
|
source=("ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/$pkgname-$pkgver.tar.xz"
|
||||||
'lyx.desktop'
|
'lyx.desktop'
|
||||||
'lyxrc.dist'
|
'lyxrc.dist')
|
||||||
qt58.patch)
|
md5sums=('032147bf8e05040787b0fca43fd70de3'
|
||||||
md5sums=('c37b2926d7df211c94b7260e163e2c29'
|
|
||||||
'3827d343670a38d97bdc7e002ff1e4a1'
|
'3827d343670a38d97bdc7e002ff1e4a1'
|
||||||
'b70fdeab95ba4a6c3ff72410dfa61823'
|
'b70fdeab95ba4a6c3ff72410dfa61823')
|
||||||
'9761360820f7bf292740013f2267f733')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
patch -Np1 -i ../qt58.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||||||
|
@ -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 files changed, 2 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/frontends/qt4/GuiViewSource.cpp b/src/frontends/qt4/GuiViewSource.cpp
|
|
||||||
index 9c0ea1d..fe59387 100644
|
|
||||||
--- a/src/frontends/qt4/GuiViewSource.cpp
|
|
||||||
+++ b/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);
|
|
||||||
--
|
|
||||||
1.7.1
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user