]> git.lyx.org Git - features.git/commit
Fix bug #7050: Assert when using DecimalAlignment in tables.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jan 2011 14:12:53 +0000 (14:12 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jan 2011 14:12:53 +0000 (14:12 +0000)
commit3ac28c69e8cc163d1024f79e40032739059227e7
tree8a907d7c090e1d71c4747c44de416500a31920ae
parent6e53e4e5d3efb7f8d98f51caa36f15a607dbf159
Fix bug #7050: Assert when using DecimalAlignment in tables.

The problem is/was that when copying an InsetTableCell?, the macrocontext_position_ and the buffer_ were not copied. That's why in InsetTabular?@splitCell@521 and in InsetTabular::TeXRow() and in InsetTabular::metrics we manually copy this into the new object.

However, splitCell() returns the object by-value. So, when we call

InsetTableCell tail = splitCell(head, column_info[c].decimal_point, hassep);

the new object is copied into tail and we lose the buffer_ and macro_contextposition. Later we will crash.

What does *nix in this case ? Apparently they don't make buffer and/or macro_contextposition 0.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37072 a592a061-630c-0410-9148-cb99ea01b6c8
src/insets/InsetTabular.cpp