mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
fix column width resize
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7086 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b625e2038a
commit
c3735f004f
@ -1,3 +1,7 @@
|
|||||||
|
2003-06-02 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* insettabular.C: fix resize of column width
|
||||||
|
|
||||||
2003-06-02 John Levon <levon@movementarian.org>
|
2003-06-02 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* Makefile.am:
|
* Makefile.am:
|
||||||
|
@ -1754,6 +1754,11 @@ void InsetTabular::tabularFeatures(BufferView * bv,
|
|||||||
bool const update = (tmplen != vallen);
|
bool const update = (tmplen != vallen);
|
||||||
tabular->SetColumnPWidth(actcell, vallen);
|
tabular->SetColumnPWidth(actcell, vallen);
|
||||||
if (update) {
|
if (update) {
|
||||||
|
// We need this otherwise we won't resize
|
||||||
|
// the insettext of the active cell (if any)
|
||||||
|
// until later (see InsetText::do_resize)
|
||||||
|
unlockInsetInInset(bv, the_locking_inset);
|
||||||
|
|
||||||
int cell;
|
int cell;
|
||||||
for (int i = 0; i < tabular->rows(); ++i) {
|
for (int i = 0; i < tabular->rows(); ++i) {
|
||||||
cell = tabular->GetCellNumber(i,column);
|
cell = tabular->GetCellNumber(i,column);
|
||||||
@ -1778,6 +1783,11 @@ void InsetTabular::tabularFeatures(BufferView * bv,
|
|||||||
bool const update = (tmplen != vallen);
|
bool const update = (tmplen != vallen);
|
||||||
tabular->SetMColumnPWidth(actcell, vallen);
|
tabular->SetMColumnPWidth(actcell, vallen);
|
||||||
if (update) {
|
if (update) {
|
||||||
|
// We need this otherwise we won't resize
|
||||||
|
// the insettext of the active cell (if any)
|
||||||
|
// until later (see InsetText::do_resize)
|
||||||
|
unlockInsetInInset(bv, the_locking_inset);
|
||||||
|
|
||||||
for (int i = 0; i < tabular->rows(); ++i) {
|
for (int i = 0; i < tabular->rows(); ++i) {
|
||||||
tabular->GetCellInset(tabular->GetCellNumber(i, column))->
|
tabular->GetCellInset(tabular->GetCellNumber(i, column))->
|
||||||
resizeLyXText(bv);
|
resizeLyXText(bv);
|
||||||
|
Loading…
Reference in New Issue
Block a user