]> git.lyx.org Git - lyx.git/log
lyx.git
11 years agoRevert "Read list of translated languages from a file"
Jean-Marc Lasgouttes [Thu, 23 Aug 2012 09:52:01 +0000 (11:52 +0200)]
Revert "Read list of translated languages from a file"

This reverts commit ed1515ef69d0381e9b0657cf1966f9d86e0cb25f.

11 years agoUpdate it.po
Enrico Forestieri [Sun, 2 Sep 2012 22:00:25 +0000 (00:00 +0200)]
Update it.po

11 years agoProtect underlined \ref{} commands by enclosing them in \mbox{}.
Enrico Forestieri [Thu, 30 Aug 2012 12:09:23 +0000 (14:09 +0200)]
Protect underlined \ref{} commands by enclosing them in \mbox{}.

This is the same protection used for \cite{}. Although "ulem" commands
don't strictly need this protection with \ref{} and friends, this helps
when one wants to use another package souch as "soul".
Indeed, ulem's \uline{} doesn't hyphenate words, while soul's \ul{} does,
and thus the output is much nicer.

With this patch, replacing ulem with soul is as simple as adding
\usepackage{soul}
\renewcommand{\uline}[1]{\ul{#1}}
to the preamble, without worrying about manually enclosing in \mbox the
\ref commands. In any case, the output from ulem remains unchanged.

Another possibility offered by soul is that of typesetting as
"yellow highlighted" the underlined text. This is achieved by adding
\usepackage{color,soul}
\renewcommand{\uline}[1]{\hl{#1}}
to the preamble.

11 years agoFix forward search with okular
Juergen Spitzmueller [Sun, 26 Aug 2012 09:42:43 +0000 (11:42 +0200)]
Fix forward search with okular

Implement a placeholder 2008f which points to the tex file with full path, since this is what okular expects nowadays.

11 years agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sat, 25 Aug 2012 08:49:08 +0000 (10:49 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years agoFix thinkos in LaTeX font reading
Juergen Spitzmueller [Sat, 25 Aug 2012 08:48:37 +0000 (10:48 +0200)]
Fix thinkos in LaTeX font reading

11 years ago* sk.po
Kornel Benko [Fri, 24 Aug 2012 13:48:03 +0000 (15:48 +0200)]
* sk.po

11 years agoFix bibliography indentation
Juergen Spitzmueller [Fri, 24 Aug 2012 13:24:32 +0000 (15:24 +0200)]
Fix bibliography indentation

11 years agoDocumentation of new IPA features
Juergen Spitzmueller [Fri, 24 Aug 2012 13:20:48 +0000 (15:20 +0200)]
Documentation of new IPA features

11 years agoImplement plaintext for tie bars
Juergen Spitzmueller [Fri, 24 Aug 2012 08:12:17 +0000 (10:12 +0200)]
Implement plaintext for tie bars

11 years ago* sk.po
Kornel Benko [Fri, 24 Aug 2012 08:00:35 +0000 (10:00 +0200)]
* sk.po

11 years agode.po: update
Juergen Spitzmueller [Fri, 24 Aug 2012 06:24:43 +0000 (08:24 +0200)]
de.po: update

11 years agoAdd missing icons
Juergen Spitzmueller [Fri, 24 Aug 2012 06:12:49 +0000 (08:12 +0200)]
Add missing icons

11 years agoFix documentation
Juergen Spitzmueller [Thu, 23 Aug 2012 15:47:12 +0000 (17:47 +0200)]
Fix documentation

11 years agoAdd support for some basic non-unicoded IPA macros
Juergen Spitzmueller [Thu, 23 Aug 2012 15:42:53 +0000 (17:42 +0200)]
Add support for some basic non-unicoded IPA macros

We now support everything on the IPA chart via the toolbar

11 years ago* sk.po
Kornel Benko [Wed, 22 Aug 2012 11:58:07 +0000 (13:58 +0200)]
* sk.po

11 years agocmake build: Add msgfmt po-checking
Kornel Benko [Wed, 22 Aug 2012 11:57:43 +0000 (13:57 +0200)]
cmake build: Add msgfmt po-checking

11 years agoStyle. Thanks, Pavel and Scott
Juergen Spitzmueller [Wed, 22 Aug 2012 06:35:06 +0000 (08:35 +0200)]
Style. Thanks, Pavel and Scott

11 years agoMake tree compilable again.
Pavel Sanda [Tue, 21 Aug 2012 21:09:45 +0000 (23:09 +0200)]
Make tree compilable again.

Natives should check and fix.

11 years agosk.po: Some found phonetic symbols
Kornel Benko [Tue, 21 Aug 2012 19:09:33 +0000 (21:09 +0200)]
sk.po: Some found phonetic symbols

11 years agode.po: update
Juergen Spitzmueller [Tue, 21 Aug 2012 16:13:49 +0000 (18:13 +0200)]
de.po: update

11 years agoThe SVG sources of the IPA icons
Juergen Spitzmueller [Tue, 21 Aug 2012 14:28:29 +0000 (16:28 +0200)]
The SVG sources of the IPA icons

11 years agoAn IPA toolbar
Juergen Spitzmueller [Tue, 21 Aug 2012 12:56:34 +0000 (14:56 +0200)]
An IPA toolbar

Translators: sorry ;-)

11 years agoMake tipa shortcuts work for combining chars
Juergen Spitzmueller [Tue, 21 Aug 2012 10:48:34 +0000 (12:48 +0200)]
Make tipa shortcuts work for combining chars

11 years agoMore tipa shortcuts
Juergen Spitzmueller [Tue, 21 Aug 2012 10:47:50 +0000 (12:47 +0200)]
More tipa shortcuts

11 years agoFix bug #8306: LyX incorrectly imports mhchem commands outside math mode
Enrico Forestieri [Tue, 21 Aug 2012 02:04:54 +0000 (04:04 +0200)]
Fix bug #8306: LyX incorrectly imports mhchem commands outside math mode

Those commands can also be used in text mode but tex2lyx tries to
translate their argument causing havoc. So, import the whole commands
as ERT.

11 years agoFix bug #8305: ^ symbol does not render into upward arrow when using mhchem
Enrico Forestieri [Mon, 20 Aug 2012 23:30:51 +0000 (01:30 +0200)]
Fix bug #8305: ^ symbol does not render into upward arrow when using mhchem

The mhchem package treats the caret both as a shorthand for \uparrow or
as a superscript operator according to whether it is surrounded by
spaces or not. The \ce and \cf insets allow inserting spaces but there
is no provision for inserting a space after the caret, which is always
considered by LyX as a superscript operator. The solution here is to
insert a space after the caret if the superscript is empty or an empty
brace inset.

Mathed does not allow empty superscripts, so an empty brace has to be
inserted when working in LyX. On the other hand, when importing latex
code, an empty superscript is retained.

This has no effect whatsoever for normal latex code, as a space after
the caret is ignored. In any case, the output is only changed if an
empty brace inset is used as superscript. Specifically, the output is
changed from "^{{}}" to "^ {}".

11 years agoMerge branch 'master' of git.lyx.org:lyx
Jean-Marc Lasgouttes [Mon, 20 Aug 2012 15:39:25 +0000 (17:39 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years agoFix crash with undo in nested insets introduced by commit 6ec1683
Jean-Marc Lasgouttes [Mon, 20 Aug 2012 15:20:59 +0000 (17:20 +0200)]
Fix crash with undo in nested insets introduced by commit 6ec1683

The code in DocIterator::sanitize now follows more closely the
previous StableDocIterator::asDocIterator code. In particular, it adds
the slices one by one, since fixIfBroken will chop the cursor
otherwise.

11 years agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Mon, 20 Aug 2012 07:32:04 +0000 (09:32 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years ago* sk.po
Kornel Benko [Mon, 20 Aug 2012 07:03:54 +0000 (09:03 +0200)]
* sk.po

11 years agoThe tipa tone macro requires the tone package from the tipa bundle
Juergen Spitzmueller [Mon, 20 Aug 2012 06:52:42 +0000 (08:52 +0200)]
The tipa tone macro requires the tone package from the tipa bundle

11 years agoPatch from Benjamin Piwowar - see ticket #8185:
Stephan Witt [Sun, 19 Aug 2012 20:27:20 +0000 (22:27 +0200)]
Patch from Benjamin Piwowar - see ticket #8185:
In order to interact with native osx applications, AppleScript support is a plus.
Here is a patch that makes LyX respond to a simple command (run) and that allows to communicate with LyX as with the LyX client.
Example of use:
tell application "LyX" to run "server-get-filename" with argument ""'
returns
message:/Users/bpiwowar/newfile1.lyx, code:0
with a message and the error code

11 years ago* Make package with hunspell dictionaries per default.
Stephan Witt [Mon, 30 Jul 2012 23:34:09 +0000 (01:34 +0200)]
* Make package with hunspell dictionaries per default.
* Change the sub-shell notation to $(cmd) style.
* Qt4Version variable checks environment too.

11 years agoTIPA additions
Juergen Spitzmueller [Sun, 19 Aug 2012 17:33:48 +0000 (19:33 +0200)]
TIPA additions

11 years agoTIPA fixes
Juergen Spitzmueller [Sun, 19 Aug 2012 14:59:53 +0000 (16:59 +0200)]
TIPA fixes

11 years agoSupport for the TeX Gyre fonts (#4332)
Juergen Spitzmueller [Sun, 19 Aug 2012 09:57:48 +0000 (11:57 +0200)]
Support for the TeX Gyre fonts (#4332)

11 years agoAvoid that, if an error dialog pops up during a long operation, it freezes LyX.
Tommaso Cucinotta [Sun, 1 Jul 2012 07:27:11 +0000 (08:27 +0100)]
Avoid that, if an error dialog pops up during a long operation, it freezes LyX.

11 years agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sat, 18 Aug 2012 12:46:07 +0000 (14:46 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years agoSupport for the mathdesign fonts (#6072)
Juergen Spitzmueller [Sat, 18 Aug 2012 12:45:41 +0000 (14:45 +0200)]
Support for the mathdesign fonts (#6072)

11 years agoMerge branch 'master' of git.lyx.org:lyx
Kornel Benko [Sat, 18 Aug 2012 11:58:11 +0000 (13:58 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years ago* sk.po
Kornel Benko [Sat, 18 Aug 2012 11:57:46 +0000 (13:57 +0200)]
* sk.po

11 years agoAdd missing option commas
Juergen Spitzmueller [Sat, 18 Aug 2012 11:29:14 +0000 (13:29 +0200)]
Add missing option commas

11 years agoAllow for general package options for LaTeX font packages (needed e.g. by mathdesign)
Juergen Spitzmueller [Sat, 18 Aug 2012 11:10:34 +0000 (13:10 +0200)]
Allow for general package options for LaTeX font packages (needed e.g. by mathdesign)

11 years agoFactor out duplicated code
Juergen Spitzmueller [Sat, 18 Aug 2012 09:57:16 +0000 (11:57 +0200)]
Factor out duplicated code

11 years agoRemove unused variable
Juergen Spitzmueller [Sat, 18 Aug 2012 08:14:32 +0000 (10:14 +0200)]
Remove unused variable

11 years agoIssue a warning if a LaTeX font is not available
Juergen Spitzmueller [Sat, 18 Aug 2012 07:58:19 +0000 (09:58 +0200)]
Issue a warning if a LaTeX font is not available

Also output font in source preview notwithstanding availability.

11 years agoAdd support for the txtt font (#4979)
Juergen Spitzmueller [Fri, 17 Aug 2012 16:24:18 +0000 (18:24 +0200)]
Add support for the txtt font (#4979)

11 years agotypo
Juergen Spitzmueller [Fri, 17 Aug 2012 15:24:09 +0000 (17:24 +0200)]
typo

11 years agoSupport for the libertine font (#3881)
Juergen Spitzmueller [Fri, 17 Aug 2012 12:11:02 +0000 (14:11 +0200)]
Support for the libertine font (#3881)

11 years agoAdd latexfonts_l10.pot to cmake build
Kornel Benko [Thu, 16 Aug 2012 20:36:32 +0000 (22:36 +0200)]
Add latexfonts_l10.pot to cmake build

11 years agoAnother attempt at #8295.
Pavel Sanda [Thu, 16 Aug 2012 18:12:49 +0000 (20:12 +0200)]
Another attempt at #8295.

This bug occur only at certain Qt versions and systems and we do
not really understand what is going on.

Quoting Stephan - the parent path of "." e.g. never should be ".".
The inconsistency between the name of FileName and the internal QFileInfo
state looks very dangerous.

11 years agoReally get GuiName from latexfonts into the po files
Juergen Spitzmueller [Thu, 16 Aug 2012 17:36:16 +0000 (19:36 +0200)]
Really get GuiName from latexfonts into the po files

11 years agoremove problematic IPA shortcut
Juergen Spitzmueller [Thu, 16 Aug 2012 17:04:11 +0000 (19:04 +0200)]
remove problematic IPA shortcut

11 years agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Thu, 16 Aug 2012 16:04:28 +0000 (18:04 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years agoSort
Juergen Spitzmueller [Thu, 16 Aug 2012 16:04:02 +0000 (18:04 +0200)]
Sort

11 years agoensure VCS::checkparentdirs() starts with an absolute path (ticket #8295)
Stephan Witt [Thu, 16 Aug 2012 11:44:20 +0000 (13:44 +0200)]
ensure VCS::checkparentdirs() starts with an absolute path (ticket #8295)

11 years agoClean up LaTeX font handling (#4999)
Juergen Spitzmueller [Thu, 16 Aug 2012 11:23:39 +0000 (13:23 +0200)]
Clean up LaTeX font handling (#4999)

The LaTeX font information are now centralized and outsourced. This removes a lot of hardcoding and duplication and makes it easier to support new LaTeX fonts.

11 years agoadd debug messages to VCS::checkparentdirs (ticket #8295)
Stephan Witt [Wed, 15 Aug 2012 15:50:24 +0000 (17:50 +0200)]
add debug messages to VCS::checkparentdirs (ticket #8295)

11 years agoComments
Juergen Spitzmueller [Wed, 8 Aug 2012 15:23:02 +0000 (17:23 +0200)]
Comments

11 years agoAdd a way to surpass special English treatment in useBabel
Juergen Spitzmueller [Wed, 8 Aug 2012 15:02:12 +0000 (17:02 +0200)]
Add a way to surpass special English treatment in useBabel

Normally, we do not load babel when English is the only language. However, if we check if babel is used from Font::validate, we need to surpass this test, else no secondary language is registered if English is the main language.

11 years agoAdd missing breaks in switch
Juergen Spitzmueller [Wed, 8 Aug 2012 09:27:37 +0000 (11:27 +0200)]
Add missing breaks in switch

11 years agodocumentation
Juergen Spitzmueller [Wed, 8 Aug 2012 08:07:31 +0000 (10:07 +0200)]
documentation

11 years agoComplete default_language rc removal
Juergen Spitzmueller [Wed, 8 Aug 2012 07:31:46 +0000 (09:31 +0200)]
Complete default_language rc removal

11 years agoRemove lyxrc \default_language which has been dropped from the GUI some time ago
Juergen Spitzmueller [Tue, 7 Aug 2012 06:29:46 +0000 (08:29 +0200)]
Remove lyxrc \default_language which has been dropped from the GUI some time ago

The default language of new documents is set via the template

11 years agoDecouple lyxrc-default_language from useLanguagePackage()
Juergen Spitzmueller [Tue, 7 Aug 2012 06:00:42 +0000 (08:00 +0200)]
Decouple lyxrc-default_language from useLanguagePackage()

11 years agoWow, that last commit was dumb. So let's fix #8278 properly.
Richard Heck [Sun, 5 Aug 2012 21:31:00 +0000 (17:31 -0400)]
Wow, that last commit was dumb. So let's fix #8278 properly.

11 years agoFix bug #8278, as suggested there by Ronen.
Richard Heck [Sat, 4 Aug 2012 21:32:55 +0000 (17:32 -0400)]
Fix bug #8278, as suggested there by Ronen.

11 years agoMerge branch 'master' of git.lyx.org:lyx
Stephan Witt [Mon, 30 Jul 2012 12:34:12 +0000 (14:34 +0200)]
Merge branch 'master' of git.lyx.org:lyx

11 years agoFix the wrong cursor move when forward flag is false:
Stephan Witt [Mon, 30 Jul 2012 12:32:29 +0000 (14:32 +0200)]
Fix the wrong cursor move when forward flag is false:
The forward flag is used to place the cursor behind the replaced text if it's true.
But it's not correct to move the cursor if it's false. The cursor is in front of the
replacement already after the replaceSelectionWithString() was done.

11 years agoRoundtrip tex2lyx, cmake-build:
Kornel Benko [Mon, 30 Jul 2012 08:04:45 +0000 (10:04 +0200)]
Roundtrip tex2lyx, cmake-build:
1.) test.ltx, test.lyx.tex in build-dir (missed this one in previous commit)
2.) Added dependency to "lyx" to work on clean build dir too

11 years agoAdapt tex2lyx roundtrip to cmake build.
Kornel Benko [Mon, 30 Jul 2012 07:30:16 +0000 (09:30 +0200)]
Adapt tex2lyx roundtrip to cmake build.
Use build tree only.

11 years agoFix bug #8129: add zoom-in binding for Cmd-plus for US-keyboards
Stephan Witt [Fri, 27 Jul 2012 09:59:44 +0000 (11:59 +0200)]
Fix bug #8129: add zoom-in binding for Cmd-plus for US-keyboards

11 years agoFix bug #8238: correct the forward argument of replace2string() in on_replacePB_click...
Stephan Witt [Thu, 26 Jul 2012 22:34:17 +0000 (00:34 +0200)]
Fix bug #8238: correct the forward argument of replace2string() in on_replacePB_clicked().

11 years agoWhitespace
Juergen Spitzmueller [Mon, 23 Jul 2012 12:59:45 +0000 (14:59 +0200)]
Whitespace

11 years agoFix direction of brackets in Hebrew when using Polyglossia (bug #8251)
Juergen Spitzmueller [Mon, 23 Jul 2012 12:56:00 +0000 (14:56 +0200)]
Fix direction of brackets in Hebrew when using Polyglossia (bug #8251)

11 years agoRework language package detection
Juergen Spitzmueller [Mon, 23 Jul 2012 12:34:24 +0000 (14:34 +0200)]
Rework language package detection

This puts the diverse use[LangPack] function into one (less error-prone) function and differentiates the custom package from the babel case

11 years agoFix thinko
Juergen Spitzmueller [Mon, 23 Jul 2012 09:39:41 +0000 (11:39 +0200)]
Fix thinko

11 years agoFixes to the language package call
Juergen Spitzmueller [Mon, 23 Jul 2012 09:36:55 +0000 (11:36 +0200)]
Fixes to the language package call

* Assure that really no language package is called when none is selected.
* Only call global custom package if global is desired.
This is a candidate for branch as well.

11 years agoarabi requires the language option to be passed to babel directly. Candidate for...
Juergen Spitzmueller [Mon, 23 Jul 2012 09:03:25 +0000 (11:03 +0200)]
arabi requires the language option to be passed to babel directly. Candidate for branch

11 years agoSuppress babel RTL commands when using polyglossia (part of #8251)
Juergen Spitzmueller [Mon, 23 Jul 2012 06:40:37 +0000 (08:40 +0200)]
Suppress babel RTL commands when using polyglossia (part of #8251)

11 years agoCompile fix
Juergen Spitzmueller [Sun, 22 Jul 2012 09:45:39 +0000 (11:45 +0200)]
Compile fix

Richard, please check.

11 years agoAdd a FIXME about when the appendix should be enabled.
Richard Heck [Sat, 21 Jul 2012 18:18:52 +0000 (14:18 -0400)]
Add a FIXME about when the appendix should be enabled.

11 years agoFix a long-standing FIXME by resetting only the counter for top-level
Richard Heck [Sat, 21 Jul 2012 18:14:12 +0000 (14:14 -0400)]
Fix a long-standing FIXME by resetting only the counter for top-level
sectioning when we see an appendix. This fixes bug #8271, whose root
cause was the fact that we were resetting all the counters inside ERT.

11 years ago* sk.po
Kornel Benko [Fri, 20 Jul 2012 09:49:11 +0000 (11:49 +0200)]
* sk.po

11 years agoImplement new LFUN buffer-forall [<BUFFER-TYPE>] <LFUN-COMMAND>
Jean-Marc Lasgouttes [Fri, 20 Jul 2012 08:50:29 +0000 (10:50 +0200)]
Implement new LFUN buffer-forall [<BUFFER-TYPE>] <LFUN-COMMAND>

This is a patch from Scott Kostyshak. See the thread here for some
background info:
http://thread.gmane.org/gmane.editors.lyx.devel/142300/focus=142362

11 years agoMimic the autoconf behaviour to select only
Kornel Benko [Fri, 20 Jul 2012 07:47:22 +0000 (09:47 +0200)]
Mimic the autoconf behaviour to select only
configured GUI languages.
Data are assembled at "cmake" time only

11 years agoTypo + missing dependencies in cmake build
Kornel Benko [Thu, 19 Jul 2012 11:52:07 +0000 (13:52 +0200)]
Typo + missing dependencies in cmake build

11 years agoPort handling of installed languages (commit ed1515ef69d0381e9b0657cf1966f9d86e0cb25f)
Kornel Benko [Thu, 19 Jul 2012 09:54:22 +0000 (11:54 +0200)]
Port handling of installed languages (commit ed1515ef69d0381e9b0657cf1966f9d86e0cb25f)
to cmake build

11 years ago* sk.po
Kornel Benko [Thu, 19 Jul 2012 09:53:04 +0000 (11:53 +0200)]
* sk.po

11 years agoRead list of translated languages from a file
Jean-Marc Lasgouttes [Wed, 18 Jul 2012 22:02:56 +0000 (00:02 +0200)]
Read list of translated languages from a file

The previous scheme of loading all possible translations and checking whether the work
is a bit too much "brute force" and causes problems on Mac OS X (documents loaded
with the wrong language).

In the new scheme, autotools install a file lib/installed_translations that contains a list of installed languages (the .gmo files that got installed). This file is read
in Languages::readInstalledTranslations and allows to set the translated() property
of each language.

11 years agoFix bug #8254: An encoding problem
Enrico Forestieri [Wed, 18 Jul 2012 20:20:46 +0000 (22:20 +0200)]
Fix bug #8254: An encoding problem

Use the short version of a path, which is guaranteed to be ascii and
works even if the path is not encodable in the current codepage.

11 years agoMake sure that undo is recorded when magic tricks are played with InsetBibitem.
Jean-Marc Lasgouttes [Tue, 17 Jul 2012 21:59:04 +0000 (23:59 +0200)]
Make sure that undo is recorded when magic tricks are played with InsetBibitem.

Fixes bug #7111: Assertion with undo and InsetBibitem

  * add Paragraph::brokenBiblio(), with tells whether there is something to fix.
  * rename Paragraph::checkBiblio to fixBiblio; simplify it greatly by using
    InsetList methods
  * In TextMetrics::redoParagraph, call recordUndo before fixBiblio (only when
    there is something to fix obviously)

Special care is taken to update cursor only when it makes sense. Note
that there are cases where undo information is not recorded (current
cursor not in the slice where action happens)

11 years agodeactivate ~ in Basque, Estonian and Galician (bug #8265)
Juergen Spitzmueller [Wed, 18 Jul 2012 11:01:10 +0000 (13:01 +0200)]
deactivate ~ in Basque, Estonian and Galician (bug #8265)

11 years agoAdd \makeat switches to babel settings if necessary.
Juergen Spitzmueller [Wed, 18 Jul 2012 10:41:53 +0000 (12:41 +0200)]
Add \makeat switches to babel settings if necessary.

Babel settings might contain @ characters. Check for this and wrap the settings into \makeatletter ... \makeatother switches if necessary (see discussion at #8265).

11 years agoDo not kill the undo stack when doing a Save As...
Jean-Marc Lasgouttes [Wed, 18 Jul 2012 08:31:47 +0000 (10:31 +0200)]
Do not kill the undo stack when doing a Save As...

The code does a reload on the buffer to avoid loose pointers if the
file changes directory. This commit adds a bool parameter to
Buffer::reload to allow for keeping the undo stack intact. This is of
couse only wanted in this case, not when reloading an earlier version
of the file.

11 years agoFix crash introduced in my previous commit f6b1c24b
Jean-Marc Lasgouttes [Tue, 17 Jul 2012 20:26:44 +0000 (22:26 +0200)]
Fix crash introduced in my previous commit f6b1c24b

Cursor::fixIfBroken does not do what I thought it did. Lift some code
from StableDocIterator::asDocIterator instead.

11 years agoFix bug #8242: undo fails for longest label width
Jean-Marc Lasgouttes [Mon, 16 Jul 2012 21:39:24 +0000 (23:39 +0200)]
Fix bug #8242: undo fails for longest label width

In the existing code for setting layout of pragraph parameters,
Text::undoSpan is used to "guess" which paragraphs should be saved in Undo.
With this patch the approach is more precise: before every explicit change
to a paragraph, a Cursor::recordUndo call is inserted. This is much more robust than trying to guess.

In particular, we do not look at depth changes at all, since they are now
handled in updateBuffer since #8159 has been fixed.

11 years agoMake the toolbar code less noisy when the session file is not found
Jean-Marc Lasgouttes [Mon, 16 Jul 2012 21:11:26 +0000 (23:11 +0200)]
Make the toolbar code less noisy when the session file is not found

11 years agoTypo introduced in commit 16fd47ad.
Jean-Marc Lasgouttes [Sun, 15 Jul 2012 22:27:58 +0000 (00:27 +0200)]
Typo introduced in commit 16fd47ad.