Uwe Stöhr
fae697a65c
update tex2lyx tests to latest file format
2017-04-08 04:13:05 +02:00
Uwe Stöhr
b3b7675f54
Length.cpp: add new unit representing \baselineskip
...
- fileformat change
2017-04-08 03:30:21 +02:00
Uwe Stöhr
b3b1cf7e98
InsetTabular.cpp: handle crossed-out text
2017-04-08 02:55:00 +02:00
Uwe Stöhr
e5c313fc3b
GuiDocument.cpp: commit missing part
...
This should have been committed with the previous commit but failed for an unknown reason.
2017-04-08 02:16:05 +02:00
Uwe Stöhr
c9dde702f0
MathsUi.ui. move formula indentation to text layout as requested by Jmarc
2017-04-08 02:12:35 +02:00
Uwe Stöhr
f37fa674f8
MathsUi.ui: next attempt to make it look correct also under Linux
2017-04-08 01:39:08 +02:00
Guillaume MM
b382b246b6
MathAtom is a unique_ptr
...
Fix coverity suggestion of defining a move constructor
2017-04-07 23:31:34 +02:00
Kornel Benko
723f0e14d9
Make runtests.py python3 ready
...
Tex2lyx tests with ctest depend on it
2017-04-07 18:51:35 +02:00
Jean-Marc Lasgouttes
61cafeb4d2
Avoid using buffer() which might throw an exception
...
Actually buffer_ is always valid on this codepath, but coverity is not
able to see that.
2017-04-07 12:05:21 +02:00
Jean-Marc Lasgouttes
b925728591
Avoid using theServer() for no reason
...
All it brings us is threatening to throw an exception to scare coverity off.
2017-04-07 11:04:57 +02:00
Uwe Stöhr
74bcd5d26c
MathsUi.ui: adjust dimensions as requested
2017-04-07 02:14:34 +02:00
Uwe Stöhr
ad86f59639
BufferParams.cpp; initialize formula_indentation with default value
...
- Buffer.cpp: formula_indentation will not always be output/written -> erase it
2017-04-07 01:52:48 +02:00
Jean-Marc Lasgouttes
8769c0fb75
Row::Element::x2pos: go to nearest point also over insets
...
getPosNearX, which is the only user of x2pos, should always return the
nearest position.
In editXY, there is a need to return the position where the inset
stands, but it is done using checkInsetHit.
This is a simplification of commit eb4a2a19
, which has been reverted
at 01f0ab64a
.
Fixes part of bug #10569 .
2017-04-06 15:18:15 +02:00
Jean-Marc Lasgouttes
01f0ab64a7
Revert "When selecting text with the mouse, inset selection happens in the middle"
...
This reverts commit eb4a2a190f
.
2017-04-06 15:17:00 +02:00
Jean-Marc Lasgouttes
6a0c1c6573
editXY: make cursor positionning correct over non editable inset
...
Instead of using complicated (and wrong) code, it is better to use
getPosNearX here.
Also simplify the code by removing temporary variables.
Fixes part of #10569 .
2017-04-06 15:16:59 +02:00
Jean-Marc Lasgouttes
e3d252cd62
Set boundary correctly in getPosNearX
...
The code that looks whether neighbor block has a different direction
should look to the left or to the right depending on the direction of
the current block.
Fixes part of bug #10569
2017-04-06 15:16:59 +02:00
Jean-Marc Lasgouttes
86ae7dad3f
Require automake 1.14 and autoconf 2.65
...
This allows to fix distclean properly, since we know that
subdir-objects is used. When it is the case, it is not a good idea for
a Makefile to use a source file which is under the control of another
one. This could not be made to work work with old automake versions
(<1.14).
Therefore we refer directly to object files in Makefile.am instead of
source files. The actually leads to less compilation in tex2lyx.
Update the code here and there to remove compatibility hacks. Update
documentation.
Re-enable the layout test and fix the Length test, which was ovewriting
memory in test_inPixels() because lyxrc did not had a correct layout.
2017-04-06 14:56:30 +02:00
Jean-Marc Lasgouttes
3bd49d1f75
Make it clear that current_view_ is available when needed
...
In particular the LATTEST in createView tells coverity that creating a
view sets it as current_view_.
2017-04-06 13:03:05 +02:00
Scott Kostyshak
22c4a24a36
Document new behavior of "delete" LFUNs
...
- Describe the change in RELEASE-NOTES.
- Update the example for inset-forall.
This commit follows 71623b88
.
2017-04-06 00:37:29 -04:00
Scott Kostyshak
4a255ec9db
Keep RELEASE-NOTES as ASCII
...
Might as well make it as simple as possible.
2017-04-06 00:13:32 -04:00
Scott Kostyshak
57e93c47d5
Remove "Bummer" from the "Save failed!" message
...
There is a small chance that the user could get offended by this
nonchalant word in a data loss situation.
For discussion, see
https://www.mail-archive.com/search?l=mid&q=20170401043945.7bpmrdugtqo6dw3j%40steph
2017-04-05 22:08:10 -04:00
Uwe Stöhr
2b0969c31c
MathsUi.ui: adjust the size to fit better
2017-04-06 03:07:58 +02:00
Uwe Stöhr
5e059d349a
Win installer: add packages necessary for Unicode math support
...
- and one for Arabic script languages like Urdu
2017-04-06 00:10:51 +02:00
Uwe Stöhr
808339790c
support to indent formulas
...
- adds support for the general document class option fleqn
- adds support to specify the formula indentation
- fileformat change
2017-04-05 22:22:47 +02:00
Jean-Marc Lasgouttes
60810e0ae2
Use assertions to declare things we know for sure
...
Doing it that way makes coverity happy.
2017-04-05 11:53:17 +02:00
Jean-Marc Lasgouttes
7b0e732eeb
Check both lower and upper bound for tainted loop limit
...
In these cases, the lower bound is not that important, but coverity insists on it.
2017-04-05 11:36:40 +02:00
Jean-Marc Lasgouttes
abc0aaec12
Replace coverity annotation by an assertion
...
And reorganize the code a bit.
2017-04-05 11:29:51 +02:00
Uwe Stöhr
51afcd4f4c
LaTeXConfig.lyx: add the noto fonts
2017-04-05 01:19:40 +02:00
Uwe Stöhr
d2a8be38b2
FuncCode.h: correct a date
2017-04-05 00:06:37 +02:00
Uwe Stöhr
e575e7eebd
Add support to cross out characters
...
- adds support for the command \xout of the LateX package ulem
- fileformat change
2017-04-05 00:01:19 +02:00
Uwe Stöhr
d81deed121
latexfonts: correct previous commit
...
this went in accidentally
2017-04-04 23:08:45 +02:00
Uwe Stöhr
7aaa85915f
latexfonts: support for the Noto fonts
...
- fileformat change
- the support to scale the sf and the tt fonts can be added later, see enhancement #10611
2017-04-04 23:02:47 +02:00
Uwe Stöhr
50e21b7166
configure.py: add support for Python 3 on Windows
...
fixes the last missing part of bug #9006 (hopefully)
2017-04-04 22:35:49 +02:00
Jean-Marc Lasgouttes
aa62b1ad49
Try another way of convincing coverity that everything is fine
...
We have a false positive here, but annotating with coverity[] comments
is not very convenient. Let's try to use good old assertions instead.
2017-04-04 09:38:43 +02:00
Uwe Stöhr
d683cc2147
Win installer: add 2 fonts to packages list
2017-04-04 02:08:49 +02:00
Uwe Stöhr
86cd1a9c97
tex2lyx: support for the cochineal fonts
2017-04-04 00:19:14 +02:00
Jean-Marc Lasgouttes
91b58cc633
Revert "Possible fix for bug #10295."
...
This reverts commit 9b0b45dc81
.
(committed by mistake)
2017-04-03 12:29:09 +02:00
Jean-Marc Lasgouttes
0005876d17
When converting, indicate clearly when buffer should exist
...
This makes coverity happy, and makes out code a tiny tiny bit better
commented.
2017-04-03 12:25:17 +02:00
Richard Heck
9b0b45dc81
Possible fix for bug #10295 .
...
As it was, the comparison buffer was sharing a DocumentClass with
one of the compared buffers. I don't fully understand why this was
causing a problem, since we use a shared_ptr. But this patch creates
a new DocumentClass for the new buffer.
2017-04-03 11:03:18 +02:00
Enrico Forestieri
66aa52ff20
Fix bug #10581
...
Tell the math parser that we are parsing a macro definition, so that
it doesn't try to return a verbatim copy in case of failure.
2017-04-03 00:26:49 +02:00
Enrico Forestieri
e36c661c61
Fix bug #10554
...
The \lyxdeleted macro cannot cope with \newpage & co.
2017-04-02 23:56:25 +02:00
Tommaso Cucinotta
621ccc5e4e
Restrict file cache expiry time to positive values.
2017-04-02 14:55:33 +02:00
Uwe Stöhr
ccfbfdaf2b
VSpace.cpp: fix 2 compiler warnings
...
A division can always lead to a non integer.
2017-04-01 19:54:33 +02:00
Jean-Marc Lasgouttes
758de9577d
Improve drawing of math roots (\sqrt and \root)
...
This is preliminary work to make roots look more like in TeX output:
* correct font size for root order
* set minimum size of the root from the max ascent descent of the
font. This is what TeX does.
* fix drawing, and in particular horizontal size.
More needs to be done, in particular:
* handle zooming and dpi correctly by removing hardcoded pixel values.
* factor the code for the two types of roots in one.
2017-03-31 18:55:08 +02:00
Jean-Marc Lasgouttes
da590925cd
Work around bug in QTextLine::xToCursor
...
With RtL text, the method can be non-monotonic wrt x value (which is a
Qt bug). To work around this, we check whether positions adjacent to
those returned by xToCursor look better. Depending on whether the new
x position is too small or too large, we look backward or forward for
a better solution.
The performance is probably not great, but this is only needed for
user interactions, so the performance penalty should not be a problem.
Fixes #10569 .
2017-03-31 16:56:06 +02:00
Jean-Marc Lasgouttes
db7054da9f
Model lyx_exit() to tell coverity what it does
2017-03-31 16:51:02 +02:00
Jean-Marc Lasgouttes
ad20dac17f
Catch another exception
...
Spotted by coverity.
2017-03-31 14:00:46 +02:00
Jean-Marc Lasgouttes
ba39d2de04
Play again with coverity annotation
...
The documentation is scarce and it is difficult to see what notation
is right.
2017-03-31 13:59:29 +02:00
Jean-Marc Lasgouttes
f14ce3f2ef
Handle exception thrown by Buffer::emergencyWrite
...
Spotted by coverity
2017-03-31 13:39:27 +02:00
Jean-Marc Lasgouttes
6b2444a7df
Replace coverity annotation by assertions
2017-03-31 11:47:47 +02:00