]> git.lyx.org Git - features.git/log
features.git
4 years agoCMake build: find enchant 2.x binary and lib
Scott Kostyshak [Fri, 13 Mar 2020 02:36:49 +0000 (22:36 -0400)]
CMake build: find enchant 2.x binary and lib

For example, see the Fedora file lists for the package
enchant2-devel [1] as well as the Debian Sid file lists for the
packages libenchant-2-dev [2] and enchant-2 [3]. The packages for
Ubuntu 20.04 are similar. Our autotools build has had support for
finding enchant 2.x since 71977769.

Searching for enchant-2 first is consistent with what we do for
autotools (see 1ae537c5).

This commit is related to #10986.

[1] https://www.lyx.org/trac/ticket/10986#comment:28
[2] https://packages.debian.org/sid/amd64/libenchant-2-dev/filelist
[3] https://packages.debian.org/sid/amd64/enchant-2/filelist

4 years agoImprove performance of includeonly with "maintain counters and references"
Juergen Spitzmueller [Fri, 13 Mar 2020 10:49:07 +0000 (11:49 +0100)]
Improve performance of includeonly with "maintain counters and references"

First, we do not need to run bibtex/biber on the maintenance run, as
the necessary references will be generated on the includeonly run.

Second, exclude the master from DepTable in maintenance run, as the
master is re-checked in any case in the includeonly run, and as it will
always be detected as changed due to the \includeonly statement, which
will trigger a complete build.

More improvements to follow.

4 years agoFix correction with continuous spellcheck
Scott Kostyshak [Fri, 13 Mar 2020 01:50:54 +0000 (21:50 -0400)]
Fix correction with continuous spellcheck

This commit amends 8d26ae57ba66b4518985cf3430de2dcf37096568.

4 years agoFix UI quirk in IncludeOnly settings
Juergen Spitzmueller [Thu, 12 Mar 2020 09:37:56 +0000 (10:37 +0100)]
Fix UI quirk in IncludeOnly settings

Fixes #11564

4 years agooutline-up/down: preserve cursor's position
Scott Kostyshak [Wed, 11 Mar 2020 18:18:33 +0000 (14:18 -0400)]
outline-up/down: preserve cursor's position

There is no need to change the cursor's position to the beginning of
the line.

This change does not affect the behavior of using the buttons in the
Outliner pane, but is useful for using the keyboard shortcuts.

4 years agoFix Qt deprecation warns for setting tab
Scott Kostyshak [Sun, 8 Mar 2020 15:16:28 +0000 (11:16 -0400)]
Fix Qt deprecation warns for setting tab

Fix warnings coming from deprecations of QTextEdit::tabStopWidth()
and QFontMetrics::width(). Regarding tabStopWidth(), the ChangeLog
states the following [1]:

  Introduced tabStopDistance property in QTextOption, QTextEdit and
  QPlainTextEdit as replacement for the inconsistently named tabStop and
  tabStopWidth properties. QTextOption::tabStop, QTextEdit::tabStopWidth and
  QPlainTextEdit::tabStopWidth are now deprecated.

Note that QFontMetrics::horizontalAdvance() is what we want here, as
opposed to QFontMetrics::boundingRect(), because we want to know
where to draw the next character after the tab.

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.10.0/?h=v5.10.0

4 years ago#11747 follow-up of change d94b708a0fec6ade04fc9d09bd86afd73e72fac7 to fix a compiler...
Stephan Witt [Sun, 8 Mar 2020 12:33:02 +0000 (13:33 +0100)]
#11747 follow-up of change d94b708a0fec6ade04fc9d09bd86afd73e72fac7 to fix a compiler warning

4 years ago#11767 improved default binding on Mac for window-close
Stephan Witt [Sun, 8 Mar 2020 12:30:45 +0000 (13:30 +0100)]
#11767 improved default binding on Mac for window-close

4 years agoRevert "Do not display caret when we're not ready"
Scott Kostyshak [Sat, 7 Mar 2020 21:47:35 +0000 (16:47 -0500)]
Revert "Do not display caret when we're not ready"

This reverts commit e99436b529fc83a5a89e3ec053f977117c339082.

Kornel discovered a regression due to this commit. See:

  https://www.mail-archive.com/search?l=mid&q=20200307121525.56be047b%40admin1-desktop

4 years agoRevert b7509419.
Richard Kimberly Heck [Sat, 7 Mar 2020 21:04:01 +0000 (16:04 -0500)]
Revert b7509419.

There are double updates of dialogs in some cases, but this isn't why.

4 years agoCmake build: Amend b399cfc7
Kornel Benko [Sat, 7 Mar 2020 12:51:50 +0000 (13:51 +0100)]
Cmake build: Amend b399cfc7

Re-allow also the previous include, so that it is now
possible to use
#include <hunspell.hxx>
and also
#include <hunspell/hunspell.hxx>

4 years agoCmake build: Remove warnings about deprecated policy CMP0075
Kornel Benko [Sat, 7 Mar 2020 12:49:35 +0000 (13:49 +0100)]
Cmake build: Remove warnings about deprecated policy CMP0075

4 years agoConsider CT underlining pref in captions markup
Juergen Spitzmueller [Sat, 7 Mar 2020 06:28:37 +0000 (07:28 +0100)]
Consider CT underlining pref in captions markup

4 years agoFix Qt deprecation warn for QPixmapCache::find()
Scott Kostyshak [Sat, 7 Mar 2020 03:46:18 +0000 (22:46 -0500)]
Fix Qt deprecation warn for QPixmapCache::find()

Fix the following warning from Qt 5.14.1:

  error: ‘static bool QPixmapCache::find(const QString&, QPixmap&)’ is deprecated: Use bool find(const QString &, QPixmap*) instead [-Werror=deprecated-declarations]

4 years agoFix Qt deprecation warn for QList::fromSet()
Scott Kostyshak [Sat, 7 Mar 2020 02:04:15 +0000 (21:04 -0500)]
Fix Qt deprecation warn for QList::fromSet()

Fix the following warning from Qt 5.14.1:

  error: ‘static QList<T> QList<T>::fromSet(const QSet<T>&) [with T = QString]’ is deprecated: Use QList<T>(set.begin(), set.end()) instead. [-Werror=deprecated-declarations]

Regarding QList::fromSet(), the documentation now states the
following [1]:

  Since Qt 5.14, range constructors are available for Qt's generic
  container classes and should be used in place of this method.

[1] https://doc.qt.io/qt-5/qlist.html

4 years agoMarkup changed captions in workarea by underline and strikeout, resp.
Juergen Spitzmueller [Fri, 6 Mar 2020 17:58:25 +0000 (18:58 +0100)]
Markup changed captions in workarea by underline and strikeout, resp.

4 years agoFootnote: (re-)add a fallback dummy counter
Juergen Spitzmueller [Fri, 6 Mar 2020 17:21:18 +0000 (18:21 +0100)]
Footnote: (re-)add a fallback dummy counter

4 years agoUse real counter in deleted footnotes
Juergen Spitzmueller [Fri, 6 Mar 2020 17:16:34 +0000 (18:16 +0100)]
Use real counter in deleted footnotes

4 years agoFix Qt deprecation warn for setConfirmOverwrite()
Scott Kostyshak [Fri, 6 Mar 2020 14:18:59 +0000 (09:18 -0500)]
Fix Qt deprecation warn for setConfirmOverwrite()

Fix the following warning:

  error: ‘void QFileDialog::setConfirmOverwrite(bool)’ is deprecated: Use setOption(DontConfirmOverwrite, !enabled) instead [-Werror=deprecated-declarations]

Note in the change that "false" changes to "true" because the option
is *Dont*ConfirmOverwrite.

QFileDialog::setConfirmOverwrite() is obsolete at least since 4.8
and QFileDialog::setOption() is available since 4.5 [1].

[1] https://doc.qt.io/archives/qt-4.8/qfiledialog-obsolete.html
[2] https://doc.qt.io/qt-5/qfiledialog.html#setOption

4 years agoFix Qt deprecation warn for getContentsMargins()
Scott Kostyshak [Fri, 6 Mar 2020 14:07:31 +0000 (09:07 -0500)]
Fix Qt deprecation warn for getContentsMargins()

Fixes the following warning:

  error: ‘void QWidget::getContentsMargins(int*, int*, int*, int*) const’ is deprecated: use contentsMargins() [-Werror=deprecated-declarations]

The new code also has advantages in that 'l' can be set to const and
it is more readable because it is clear that only 'l' is used.

QWidget::getContentsMargins() was deprecated in 5.14.0 [1]. and
QWidget::contentsMargins() is available since 4.6 [2].

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.14.0/?h=v5.14.0
[2] https://doc.qt.io/archives/qt-4.8/qlayout.html#contentsMargins

4 years agoHandle deleted BibTeX/Biblatex bibliographies
Juergen Spitzmueller [Fri, 6 Mar 2020 12:49:10 +0000 (13:49 +0100)]
Handle deleted BibTeX/Biblatex bibliographies

Since we cannot strike-out these, we output a placeholder when
show changes in output is active.

Fixes #11762

4 years agoTell updateBuffer whether an inset is deleted.
Juergen Spitzmueller [Fri, 6 Mar 2020 12:23:01 +0000 (13:23 +0100)]
Tell updateBuffer whether an inset is deleted.

Fixes #11747

4 years agoConsider change tracking in setBeginOfBody()
Juergen Spitzmueller [Fri, 6 Mar 2020 10:49:32 +0000 (11:49 +0100)]
Consider change tracking in setBeginOfBody()

Fixes #11749

4 years agoUse range-based loop
Juergen Spitzmueller [Fri, 6 Mar 2020 10:20:46 +0000 (11:20 +0100)]
Use range-based loop

4 years agoAccount for changes in insets when checking changes in selection
Juergen Spitzmueller [Fri, 6 Mar 2020 09:53:54 +0000 (10:53 +0100)]
Account for changes in insets when checking changes in selection

This is not ideal, see FIXME.

Fixes #11774

4 years agoFix Qt deprecation warning for isItemSelected()
Scott Kostyshak [Fri, 6 Mar 2020 01:36:09 +0000 (20:36 -0500)]
Fix Qt deprecation warning for isItemSelected()

These methods are related to the deprecated setItemSelected() and
setItemHidden() methods that were converted at 24926b2e.

4 years agoFix Qt deprecation warning for setItemHidden()
Scott Kostyshak [Fri, 6 Mar 2020 01:29:26 +0000 (20:29 -0500)]
Fix Qt deprecation warning for setItemHidden()

Consistent with commit 24926b2e.

4 years agoRename a var "sort" to not mask std::sort()
Scott Kostyshak [Thu, 5 Mar 2020 17:16:26 +0000 (12:16 -0500)]
Rename a var "sort" to not mask std::sort()

This allows us to use sort() without the "std" prefix.

4 years agoFix deprecation warnings from use of qSort()
Scott Kostyshak [Thu, 5 Mar 2020 16:35:49 +0000 (11:35 -0500)]
Fix deprecation warnings from use of qSort()

This commit replaces qSort with std::sort to fix warnings from compiling with
Qt 5.14.1. Below is one of the warnings:

  error: ‘void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<lyx::ColorCode>::iterator; LessT$
  an = bool (*)(lyx::ColorCode, lyx::ColorCode)]’ is deprecated: Use std::sort [-Werror=deprecated-declarations]

qSort() has been deprecated since Qt 5.2. Quoting from the ChangeLog [1]:

  With STL no longer being optional for building and using Qt, a number of
  parts of QtAlgorithms no longer make sense, and have therefore been
  deprecated. Replacements are available in the STL, and generally have
  much better performance

There are some cases that require more than just a trivial substitution, but
our code does not appear to use any of those cases.

For some discussion on the differences in speed of std::sort() and
qSort(), see the following:

  https://phabricator.kde.org/D10857

These are just warnings now, but will likely be errors with Qt 6:

  https://bugreports.qt.io/browse/QTBUG-73048

I tested that LyX can still be built against Qt 4.8.7 with this commit.

This commit follows 24926b2e, which also fixes some deprecation warnings.

[1]
https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.2.0/?h=v5.2.0

4 years agoFix a few deprecation warnings in Qt 5.14.1
Scott Kostyshak [Thu, 5 Mar 2020 16:11:09 +0000 (11:11 -0500)]
Fix a few deprecation warnings in Qt 5.14.1

These changes fix a few instances of the following type of warning:

  error: ‘void QListWidget::setItemSelected(const QListWidgetItem*, bool)’ is deprecated: Use QListWidgetItem::setSelected() instead [-Werror=deprecated-declarations]

as well as similar warnings for setItemHidden() and
setItemExpanded(). These are just warnings now, but it is planned to
remove the methods for Qt 6:

  https://bugreports.qt.io/browse/QTBUG-73048

I tested that LyX can still be built against Qt 4.8.7 with this
commit. Indeed, these methods have been deprecated for a while (it
is just that QT_DEPRECATED_WARNINGS was only turned on by default
starting with 5.13.0). See, e.g.,

  https://doc.qt.io/archives/qt-4.7/qlistwidget-obsolete.html

4 years agoctest autotest for #11773 language nesting with lyx2lyx.
Günter Milde [Wed, 4 Mar 2020 23:19:11 +0000 (00:19 +0100)]
ctest autotest for #11773 language nesting with lyx2lyx.

* invert failing lyx2lyx tests for ko/Welcome
* add dedicated test sample
* set language for English text part in ko/Welcome.

Also

* fix a lyx2lyx language test sample
* fix clause in unreliableTests

4 years agoRemove no longer needed module import.
Günter Milde [Wed, 4 Mar 2020 12:40:11 +0000 (13:40 +0100)]
Remove no longer needed module import.

4 years agoRefactor lyx2lyx code.
Günter Milde [Tue, 3 Mar 2020 22:44:08 +0000 (23:44 +0100)]
Refactor lyx2lyx code.

Use helper functions for shorter, self-documenting code.

Drop optional arguments that equal the default value.

Remove hard TABs and trailing whitespace.

4 years agoFixup cf9827df: do not forget keyboard bindings and docs
Jean-Marc Lasgouttes [Wed, 4 Mar 2020 11:21:11 +0000 (12:21 +0100)]
Fixup cf9827df: do not forget keyboard bindings and docs

Keyboard bindings are easy. For lfun icons in documentation, both the UserGuide and Tutorial have to be updated. Since this will have to be done again once the documentation is imported from branch, I list them here for reference:

For the lib/doc/ directory:
find . -name 'Tutorial.lyx' | xargs sed -i 's/"layout List"/"layout Labeling"/g'
find . -name 'UserGuide.lyx' | xargs sed -i 's/"layout List"/"layout Labeling"/g'
and then
find . -name 'Tutorial.lyx' | xargs sed -i 's/"layout \(Itemize\|Description\|Labeling\|Enumerate\|List\)"/"layout-toggle \1"/g'
find . -name 'UserGuide.lyx' | xargs sed -i 's/"layout \(Itemize\|Description\|Labeling\|Enumerate\|List\)"/"layout-toggle \1"/g'

Related to bug #11770.

4 years agoList is obsoleted by Labeling: update icons
Jean-Marc Lasgouttes [Wed, 4 Mar 2020 10:01:31 +0000 (11:01 +0100)]
List is obsoleted by Labeling: update icons

This does not change much in master but it is cleaner since the List
layout has been obsolete since 2010 (7f8b868f).

See bug #11770.

4 years agoFix bug #10316.
Richard Kimberly Heck [Tue, 3 Mar 2020 04:57:08 +0000 (23:57 -0500)]
Fix bug #10316.

By sending the request through the usual dispatch machinery, we
make sure the cursor is valid when we're done.

4 years agoAndr'e points out this is wrong. Of course it is, since that is not a pointer.
Richard Kimberly Heck [Tue, 3 Mar 2020 19:27:03 +0000 (14:27 -0500)]
Andr'e points out this is wrong. Of course it is, since that is not a pointer.

4 years agoDo not display caret when we're not ready
Jean-Marc Lasgouttes [Fri, 28 Feb 2020 14:21:40 +0000 (15:21 +0100)]
Do not display caret when we're not ready

Using a dialog may trigger a redraw at times where the metrics caches
have not been updated yet. To fix this, do as in paintEvent() and
abort caret blinking if there is an open undo group.

Move the decision to skip the caret painting to showCaret(), closer to
where real work happens. hideCaret () is now an alias for
showCaret(false), which allows some code refactoring.

See also commit c7496a11b2.

Fixes bug #11763 (although it does not trigger on master).

4 years agoFix nullptr warning
Richard Kimberly Heck [Tue, 3 Mar 2020 05:08:46 +0000 (00:08 -0500)]
Fix nullptr warning

4 years agoSend a DispatchResult object with dispatch requests to the TOC.
Richard Kimberly Heck [Tue, 3 Mar 2020 05:02:45 +0000 (00:02 -0500)]
Send a DispatchResult object with dispatch requests to the TOC.

This allows us to request a buffer update.

4 years agoAmend(1) 7f0efc51: Add evince_sync files to the dist target of automake
Kornel Benko [Mon, 2 Mar 2020 11:49:09 +0000 (12:49 +0100)]
Amend(1) 7f0efc51: Add evince_sync files to the dist target of automake

4 years agoFix nullptr warnings
Richard Kimberly Heck [Sun, 1 Mar 2020 20:31:52 +0000 (15:31 -0500)]
Fix nullptr warnings

4 years agoCmake build: Add evince_sync-files to be installed under the scripts dir
Kornel Benko [Sun, 1 Mar 2020 15:48:14 +0000 (16:48 +0100)]
Cmake build: Add evince_sync-files to be installed under the scripts dir

4 years agoMoving 3rdparty/evince_sync to 3rdparty/scripts/evince_sync
Kornel Benko [Sun, 1 Mar 2020 15:46:35 +0000 (16:46 +0100)]
Moving 3rdparty/evince_sync to 3rdparty/scripts/evince_sync

4 years agoCmake build: Remove deprecated policy warning
Kornel Benko [Sun, 1 Mar 2020 14:36:41 +0000 (15:36 +0100)]
Cmake build: Remove deprecated policy warning

4 years agoCmake tests: Amend f6f51587
Kornel Benko [Sat, 29 Feb 2020 19:37:04 +0000 (20:37 +0100)]
Cmake tests: Amend f6f51587

4 years agoUn-provide amsmath in beamer article layouts
Juergen Spitzmueller [Sat, 29 Feb 2020 18:20:18 +0000 (19:20 +0100)]
Un-provide amsmath in beamer article layouts

Fixes #11768

4 years agoAvoid a copy.
Richard Kimberly Heck [Sat, 29 Feb 2020 10:55:20 +0000 (05:55 -0500)]
Avoid a copy.

4 years agoru.po: update by Yuriy
Juergen Spitzmueller [Sat, 29 Feb 2020 08:38:15 +0000 (09:38 +0100)]
ru.po: update by Yuriy

4 years agoFix warnings and use ranges.
Richard Kimberly Heck [Sat, 29 Feb 2020 05:21:02 +0000 (00:21 -0500)]
Fix warnings and use ranges.

4 years agoFix warnings
Richard Kimberly Heck [Sat, 29 Feb 2020 05:21:00 +0000 (00:21 -0500)]
Fix warnings

4 years agoFix a bunch of warnings
Richard Kimberly Heck [Sat, 29 Feb 2020 05:06:30 +0000 (00:06 -0500)]
Fix a bunch of warnings

4 years agoFix warnings in support/.
Richard Kimberly Heck [Sat, 29 Feb 2020 05:00:47 +0000 (00:00 -0500)]
Fix warnings in support/.

4 years agoFix header.
Richard Kimberly Heck [Sat, 29 Feb 2020 04:52:06 +0000 (23:52 -0500)]
Fix header.

4 years agoNull pointers.
Richard Kimberly Heck [Sat, 29 Feb 2020 04:51:53 +0000 (23:51 -0500)]
Null pointers.

4 years agoCmake build: Use correct include if using internal hunspell
Kornel Benko [Fri, 28 Feb 2020 20:48:54 +0000 (21:48 +0100)]
Cmake build: Use correct include if using internal hunspell

This way also "HAVE_HUNSPELL_CXXABI" is correctly set to 1

4 years agoUse ranges, fix warning
Richard Kimberly Heck [Fri, 28 Feb 2020 06:55:05 +0000 (01:55 -0500)]
Use ranges, fix warning

4 years agoUse ranges, fix warning
Richard Kimberly Heck [Fri, 28 Feb 2020 06:48:10 +0000 (01:48 -0500)]
Use ranges, fix warning

4 years agoUse range
Richard Kimberly Heck [Fri, 28 Feb 2020 06:44:48 +0000 (01:44 -0500)]
Use range

4 years agoFix nullptr warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:42:32 +0000 (01:42 -0500)]
Fix nullptr warnings

4 years agoUse ranges, fix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:39:06 +0000 (01:39 -0500)]
Use ranges, fix warnings

4 years agoFix nullptr warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:28:08 +0000 (01:28 -0500)]
Fix nullptr warnings

4 years agoUse ranges, fix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:25:30 +0000 (01:25 -0500)]
Use ranges, fix warnings

4 years agoFix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:21:02 +0000 (01:21 -0500)]
Fix warnings

4 years agoFix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:16:21 +0000 (01:16 -0500)]
Fix warnings

4 years agoUse range
Richard Kimberly Heck [Fri, 28 Feb 2020 06:13:56 +0000 (01:13 -0500)]
Use range

4 years agoFix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:09:45 +0000 (01:09 -0500)]
Fix warnings

4 years agoUse range and rename private variable
Richard Kimberly Heck [Fri, 28 Feb 2020 06:08:28 +0000 (01:08 -0500)]
Use range and rename private variable

4 years agoUse more ranges
Richard Kimberly Heck [Fri, 28 Feb 2020 06:06:22 +0000 (01:06 -0500)]
Use more ranges

4 years agoUse ranges
Richard Kimberly Heck [Fri, 28 Feb 2020 05:52:38 +0000 (00:52 -0500)]
Use ranges

4 years agoPolish
Richard Kimberly Heck [Fri, 28 Feb 2020 05:39:50 +0000 (00:39 -0500)]
Polish

4 years agoMore requires --> required, for C++2a.
Richard Kimberly Heck [Fri, 28 Feb 2020 05:36:55 +0000 (00:36 -0500)]
More requires --> required, for C++2a.

4 years agoApparently, "requires" is a keyword in C++2a.
Richard Kimberly Heck [Fri, 28 Feb 2020 05:26:31 +0000 (00:26 -0500)]
Apparently, "requires" is a keyword in C++2a.

4 years agoRemove code that has not been used since 2010.
Richard Kimberly Heck [Fri, 28 Feb 2020 05:21:48 +0000 (00:21 -0500)]
Remove code that has not been used since 2010.

See 208acbc72.

4 years agoStop dialogs from updating twice all the time.
Richard Kimberly Heck [Fri, 28 Feb 2020 05:11:45 +0000 (00:11 -0500)]
Stop dialogs from updating twice all the time.

I've long wondered why dialogs seem to update twice when it seems
they just need to update once. It seems it was this code. But it
was only put there to deal with a problem with code in the button
controllers that was disabled in 2007! So I'm going to try removing
it. If we start seeing weird behavior with dialogs in master, then
this will be why.

4 years agoFix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 05:10:23 +0000 (00:10 -0500)]
Fix warnings

4 years agoRemove code that has not been used for 13 years.
Richard Kimberly Heck [Fri, 28 Feb 2020 05:08:30 +0000 (00:08 -0500)]
Remove code that has not been used for 13 years.

4 years agoFix warnings.
Richard Kimberly Heck [Fri, 28 Feb 2020 05:07:53 +0000 (00:07 -0500)]
Fix warnings.

4 years agoFix a bunch of warnings.
Richard Kimberly Heck [Fri, 28 Feb 2020 04:58:01 +0000 (23:58 -0500)]
Fix a bunch of warnings.

4 years agoRevert unintended change
Richard Kimberly Heck [Thu, 27 Feb 2020 19:36:46 +0000 (14:36 -0500)]
Revert unintended change

4 years agoFix null pointer warnings.
Richard Kimberly Heck [Thu, 27 Feb 2020 05:05:41 +0000 (00:05 -0500)]
Fix null pointer warnings.

4 years agoFix warning (and simplify)
Richard Kimberly Heck [Thu, 27 Feb 2020 04:37:24 +0000 (23:37 -0500)]
Fix warning (and simplify)

4 years agoFix bug #11748.
Richard Kimberly Heck [Thu, 27 Feb 2020 04:00:09 +0000 (23:00 -0500)]
Fix bug #11748.

Track the last chosen citation style when we clear the entries.

4 years agoFix a bunch of warnings
Richard Kimberly Heck [Thu, 27 Feb 2020 03:29:40 +0000 (22:29 -0500)]
Fix a bunch of warnings

4 years agoFix problem with validation when using InsetLayout.
Richard Kimberly Heck [Thu, 27 Feb 2020 03:18:58 +0000 (22:18 -0500)]
Fix problem with validation when using InsetLayout.

4 years agoCleaner fix to ensure 32-bit XCB events
Enrico Forestieri [Tue, 25 Feb 2020 11:37:51 +0000 (12:37 +0100)]
Cleaner fix to ensure 32-bit XCB events

This fix still satisfies Valgrind and is cleaner than the approach
at 19c41bd0: instead of using calloc we now use the C++11 specifier
alignas. For more info, see the following ML thread:
https://www.mail-archive.com/search?l=mid&q=20200219024908.5n4x4osni55gylo3%40tallinn

4 years agoRevert "Fix write to uninitialized bytes for XCB event"
Enrico Forestieri [Tue, 25 Feb 2020 11:32:10 +0000 (12:32 +0100)]
Revert "Fix write to uninitialized bytes for XCB event"

This reverts commit 19c41bd09572f15ac3546c8e6a6d4ec15306c93a.

A more efficient fix is on the way.

4 years agoFix bug #11750.
Richard Kimberly Heck [Tue, 25 Feb 2020 00:00:31 +0000 (19:00 -0500)]
Fix bug #11750.

Unfortunately, stat.st_ino returns 0 on Windows, at least on Python 2.7, so we can't use that way of telling when we're seeing the same directory again. Surely the real pathname should work.

4 years agoFixup d207e85c: paint sublabel with the correct background color
Jean-Marc Lasgouttes [Mon, 24 Feb 2020 09:37:14 +0000 (10:37 +0100)]
Fixup d207e85c: paint sublabel with the correct background color

The above mentionned patch did paint the background of the sublabel to
avoid "bold-like" effect. However the correct backgound color is the
row's one, not the inset's one.

4 years agoFix alignment warnings from clang.
Richard Kimberly Heck [Sun, 23 Feb 2020 22:14:13 +0000 (17:14 -0500)]
Fix alignment warnings from clang.

4 years agoUse C++11 construct.
Richard Kimberly Heck [Sun, 23 Feb 2020 21:59:31 +0000 (16:59 -0500)]
Use C++11 construct.

4 years agoFix FileName::realPath() on Windows
Enrico Forestieri [Sun, 23 Feb 2020 21:48:35 +0000 (22:48 +0100)]
Fix FileName::realPath() on Windows

The realPath() implementation on Windows works only for files and
not for directories. By using an API available starting from Vista
it is possible to fix it in a simple way.

I also took into account using the Qt QFileInfo::canonicalFilePath(),
but it turns out to not work when a path component is a junction
(tested with Qt 5.14.1).

Due to this, it is not possible compiling or using LyX on Windows
versions earlier than Vista.

4 years agoTry again to fix memory leak reported by Scott.
Richard Kimberly Heck [Sun, 23 Feb 2020 21:39:00 +0000 (16:39 -0500)]
Try again to fix memory leak reported by Scott.

This time, use a shared_ptr.

4 years agoRevert "Fix memory leak reported by Scott."
Richard Kimberly Heck [Sun, 23 Feb 2020 21:29:58 +0000 (16:29 -0500)]
Revert "Fix memory leak reported by Scott."

It leads to a double delete error.

This reverts commit 11397a2e82ba19b69818f9891132ff7074bc1759.

4 years agoFix memory leak reported by Scott.
Richard Kimberly Heck [Sun, 23 Feb 2020 20:54:13 +0000 (15:54 -0500)]
Fix memory leak reported by Scott.

4 years agoFix some clang warnings.
Richard Kimberly Heck [Sun, 23 Feb 2020 20:51:52 +0000 (15:51 -0500)]
Fix some clang warnings.

The first one, a comma instead of a semi-colon, is a weird one.

4 years agoFix nullptr warnings
Richard Kimberly Heck [Wed, 19 Feb 2020 00:27:12 +0000 (19:27 -0500)]
Fix nullptr warnings

4 years agoFix "no extern declaration" warning.
Richard Kimberly Heck [Wed, 19 Feb 2020 00:22:54 +0000 (19:22 -0500)]
Fix "no extern declaration" warning.

4 years agoCmake build: Remove unused option
Kornel Benko [Sat, 22 Feb 2020 20:13:43 +0000 (21:13 +0100)]
Cmake build: Remove unused option

LYX_USE_FILEDIALOG is not used since af795b80

4 years agoMake sure that spelling marks do not spill ouside of row
Jean-Marc Lasgouttes [Sat, 22 Feb 2020 16:59:37 +0000 (17:59 +0100)]
Make sure that spelling marks do not spill ouside of row

This avoids annoying remnants of dotted red lines.

Fixes bug #11755.