mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 17:09:41 +00:00
Small fix for not signing the doc as changed when entering empyt cells.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@2898 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
22e80547fc
commit
c2f327174f
@ -1,3 +1,9 @@
|
||||
2001-10-19 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* src/insets/insettext.C (SetFont): fixed problem of marking
|
||||
document "changed" when only changing the font of an empty
|
||||
paragraph.
|
||||
|
||||
2001-10-17 Kayvan A. Sylvan <kayvan@sylvan.com>
|
||||
|
||||
* development/lyx.spec.in: overhaul
|
||||
|
@ -685,8 +685,8 @@ void InsetTabular::InsetButtonPress(BufferView * bv, int x, int y, int button)
|
||||
if ((ocell == actcell) && the_locking_inset && inset_hit) {
|
||||
cursor.pos(0); // always before the inset!
|
||||
resetPos(bv);
|
||||
the_locking_inset->InsetButtonPress(bv,
|
||||
x - inset_x, y - inset_y, button);
|
||||
the_locking_inset->InsetButtonPress(bv, x - inset_x, y - inset_y,
|
||||
button);
|
||||
return;
|
||||
} else if (the_locking_inset) {
|
||||
the_locking_inset->InsetUnlock(bv);
|
||||
@ -1815,8 +1815,6 @@ bool InsetTabular::ActivateCellInset(BufferView * bv, int x, int y, int button,
|
||||
x = inset->x() + inset->width(bv, font);
|
||||
y = inset->descent(bv, font);
|
||||
}
|
||||
//inset_x = cursor.x() - top_x + tabular->GetBeginningOfTextInCell(actcell);
|
||||
//inset_y = cursor.y();
|
||||
inset->Edit(bv, x, y, button);
|
||||
if (!the_locking_inset)
|
||||
return false;
|
||||
|
@ -1364,6 +1364,10 @@ UpdatableInset * InsetText::GetFirstLockingInsetOfType(Inset::Code c)
|
||||
|
||||
void InsetText::SetFont(BufferView * bv, LyXFont const & font, bool toggleall)
|
||||
{
|
||||
if ((!par->next && !par->size()) || !cpar(bv)->size()) {
|
||||
TEXT(bv)->SetFont(bv, font, toggleall);
|
||||
return;
|
||||
}
|
||||
if (TEXT(bv)->selection) {
|
||||
bv->text->SetUndo(bv->buffer(), Undo::EDIT,
|
||||
#ifndef NEW_INSETS
|
||||
|
Loading…
x
Reference in New Issue
Block a user