lyx_mirror/src/insets
Georg Baum c0ce79452f Introduce proper integer rounding function
This fixes a failing unit test with 32bit gcc 4.9.3 and -O2 optimization:
It computed 9953 instead of 9954 for Length::inPixels() of value 2342.
The reason for this is probably different rounding behaviour caused by storing
the unrounded value in a processor register (uses 80bit accuracy) vs. writing
it back to memory (uses 64bit accuracy). The unrounded value is very close to
9953.5 (which is not representable as an exact IEEE floating point value).

Apart from that, having a proper function for rounding makes the code more
readable, and has the nice side effect to make Length::inPB() work for
negative lengths as well.
2016-02-17 21:42:37 +01:00
..
CMakeLists.txt Fix compilation with cmake 2015-03-26 02:27:11 +01:00
ExternalSupport.cpp Fix date inset except on windows (bug 9925) 2016-01-24 17:11:31 +01:00
ExternalSupport.h Support Photos in RasterImage template 2015-07-20 21:14:45 +02:00
ExternalTemplate.cpp
ExternalTemplate.h
ExternalTransforms.cpp Rewrite regexes in ECMAScript style (bug #9799) 2015-11-18 01:52:50 +00:00
ExternalTransforms.h Support units in external inset bbox 2015-07-16 22:06:35 +02:00
Inset.cpp minor cleanup 2016-01-31 16:02:18 +00:00
Inset.h Use the much faster forOutliner also to get the tooltip text. 2015-12-12 17:19:33 -05:00
InsetArgument.cpp Implement PassThruChars to Argument 2015-05-08 09:32:31 +02:00
InsetArgument.h Implement PassThruChars to Argument 2015-05-08 09:32:31 +02:00
InsetBibitem.cpp Code simplification. 2015-05-21 18:13:42 +02:00
InsetBibitem.h
InsetBibtex.cpp Update paths of included files when saving to a different folder. 2015-05-03 23:55:19 +02:00
InsetBibtex.h Update paths of included files when saving to a different folder. 2015-05-03 23:55:19 +02:00
InsetBox.cpp InsetBox.cpp: fix bug #8712 2016-02-05 00:49:17 +01:00
InsetBox.h Implement on screen rendering of alignment in LR boxes. 2015-11-23 11:40:36 +01:00
InsetBranch.cpp Use the much faster forOutliner also to get the tooltip text. 2015-12-12 17:19:33 -05:00
InsetBranch.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetCaption.cpp Add cursor<->row correspondance tracking for tables and subcaptions. 2015-10-19 06:55:18 +01:00
InsetCaption.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetCaptionable.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetCaptionable.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetCitation.cpp Amend bb344452 2016-01-04 03:43:08 +00:00
InsetCitation.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetCode.h
InsetCollapsable.cpp Fix "dead store" warnings of Xcode analyze tool 2015-10-09 08:16:23 +02:00
InsetCollapsable.h New class InsetCaptionable 2015-09-15 15:25:33 +01:00
InsetCommand.cpp Comply with rule-of-three 2015-10-11 11:16:09 +02:00
InsetCommand.h Comply with rule-of-three 2015-10-11 11:16:09 +02:00
InsetCommandParams.cpp Inset files: add includes to compile with cxx11 2015-12-10 01:15:16 +01:00
InsetCommandParams.h Avoid compiler warning about overloaded virtual function. 2015-05-20 15:49:15 +02:00
InsetERT.cpp Clean-up the undo API 2015-04-01 14:18:23 +02:00
InsetERT.h
InsetExternal.cpp Fix file locking problem on windows (bug 9925) 2016-01-26 21:49:08 +01:00
InsetExternal.h Fix file locking problem on windows (bug 9925) 2016-01-26 21:49:08 +01:00
InsetFlex.cpp
InsetFlex.h
InsetFloat.cpp Add cursor<->row correspondance tracking for tables and subcaptions. 2015-10-19 06:55:18 +01:00
InsetFloat.h Add cursor<->row correspondance tracking for tables and subcaptions. 2015-10-19 06:55:18 +01:00
InsetFloatList.cpp Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetFloatList.h
InsetFoot.cpp Use the much faster forOutliner also to get the tooltip text. 2015-12-12 17:19:33 -05:00
InsetFoot.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetFootlike.cpp Revert "InsetFootlike.cpp: disable listings inside footnotes" 2015-12-07 01:52:11 -05:00
InsetFootlike.h
InsetGraphics.cpp Introduce proper integer rounding function 2016-02-17 21:42:37 +01:00
InsetGraphics.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetGraphicsParams.cpp Do not apply \origin at existing files 2016-01-10 19:46:01 +01:00
InsetGraphicsParams.h Do not apply \origin at existing files 2016-01-10 19:46:01 +01:00
InsetHyperlink.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetHyperlink.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetInclude.cpp Fix encoding-setting of child document with LuaTeX and TeX-fonts 2015-11-05 10:55:43 +01:00
InsetInclude.h Comply with rule-of-three 2015-10-11 11:16:09 +02:00
InsetIndex.cpp Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetIndex.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetInfo.cpp Fix bug #9898: inset info cannot show specified icon 2015-12-11 08:51:37 +01:00
InsetInfo.h Fix bug #9898: inset info cannot show specified icon 2015-12-11 08:51:37 +01:00
InsetIPA.cpp Get rid of use_preview_ in various insets 2016-02-09 09:54:14 +01:00
InsetIPA.h Get rid of use_preview_ in various insets 2016-02-09 09:54:14 +01:00
InsetIPAMacro.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetIPAMacro.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetLabel.cpp Fix std::string docstream output error 2015-10-15 20:52:28 +02:00
InsetLabel.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetLayout.cpp Layout format update: AddToToc, IsTocCaption, OutlinerName 2015-12-13 19:56:49 +00:00
InsetLayout.h Layout format update: AddToToc, IsTocCaption, OutlinerName 2015-12-13 19:56:49 +00:00
InsetLine.cpp Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
InsetLine.h
InsetListings.cpp Fix InsetListings::getCaption() for std::regex 2015-11-22 17:43:10 +01:00
InsetListings.h New class InsetCaptionable 2015-09-15 15:25:33 +01:00
InsetListingsParams.cpp
InsetListingsParams.h New class InsetCaptionable 2015-09-15 15:25:33 +01:00
InsetMarginal.cpp Use the much faster forOutliner also to get the tooltip text. 2015-12-12 17:19:33 -05:00
InsetMarginal.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetNewline.cpp Remove unused variables 2015-10-10 21:28:28 +02:00
InsetNewline.h
InsetNewpage.cpp Remove unused variables 2015-10-10 21:28:28 +02:00
InsetNewpage.h
InsetNomencl.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetNomencl.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetNote.cpp Use the much faster forOutliner also to get the tooltip text. 2015-12-12 17:19:33 -05:00
InsetNote.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
InsetPhantom.cpp Fix std::string docstream output error 2015-10-15 20:52:28 +02:00
InsetPhantom.h
InsetPreview.cpp Get rid of use_preview_ in various insets 2016-02-09 09:54:14 +01:00
InsetPreview.h Get rid of use_preview_ in various insets 2016-02-09 09:54:14 +01:00
InsetQuotes.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetQuotes.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetRef.cpp Amend bb344452 2015-10-20 16:23:25 +01:00
InsetRef.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetScript.cpp Fix std::string docstream output error 2015-10-15 20:52:28 +02:00
InsetScript.h
InsetSeparator.cpp Change the shape of the parbreak separator 2016-01-24 12:49:02 +01:00
InsetSeparator.h
InsetSpace.cpp Fix length of hfills 2015-11-24 10:11:17 +01:00
InsetSpace.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetSpecialChar.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetSpecialChar.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetTabular.cpp Do not record undo in the tabularFeatures helper 2016-02-09 09:18:56 +01:00
InsetTabular.h Do not record undo in the tabularFeatures helper 2016-02-09 09:18:56 +01:00
InsetText.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
InsetText.h Use the much faster forOutliner also to get the tooltip text. 2015-12-12 17:19:33 -05:00
InsetTOC.cpp Better construction of the TOC for floats and captions 2015-09-15 15:25:33 +01:00
InsetTOC.h Use const ref instead of passing by value. 2015-05-12 12:52:36 -04:00
InsetVSpace.cpp
InsetVSpace.h
InsetWrap.cpp New class InsetCaptionable 2015-09-15 15:25:33 +01:00
InsetWrap.h New class InsetCaptionable 2015-09-15 15:25:33 +01:00
RenderBase.h
RenderButton.cpp
RenderButton.h
RenderGraphic.cpp image_ready is false at this point 2015-09-12 18:33:17 +02:00
RenderGraphic.h
RenderPreview.cpp Revert bc47054b and the related commit ad0d0f6d 2015-06-14 18:05:39 +02:00
RenderPreview.h Revert bc47054b and the related commit ad0d0f6d 2015-06-14 18:05:39 +02:00