Catch encoding exception when performing instant preview on an uncodable char (bug...
commitabf9e5eabc0a544e848376773f2c1585fe18d90f
authorspitz <spitz@a592a061-630c-0410-9148-cb99ea01b6c8>
Fri, 7 Aug 2009 05:25:22 +0000 (7 05:25 +0000)
committerspitz <spitz@a592a061-630c-0410-9148-cb99ea01b6c8>
Fri, 7 Aug 2009 05:25:22 +0000 (7 05:25 +0000)
tree5bc6f3a2b6e53740831bdfae1948e04fbb5049ff
parent5eaeb610c4bdb7632ec3ae5fc06c85563e4e2fb1
Catch encoding exception when performing instant preview on an uncodable char (bug 6116).

* MathStream{.cpp, h}:
- replace bool dryrun() by enum output that also knows whether the stream is for instant preview
* InsetMathHull.cpp:
- tell the stream whether we use it for instant preview.
* MathString.cpp (write):
- gracefully catch encoding exception for instant preview.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30895 a592a061-630c-0410-9148-cb99ea01b6c8
src/Cursor.cpp
src/mathed/InsetFormulaMacro.cpp
src/mathed/InsetMath.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathString.cpp
src/mathed/MacroTable.cpp
src/mathed/MathMacroTemplate.cpp
src/mathed/MathStream.cpp
src/mathed/MathStream.h