mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 18:07:18 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7bf090853f
commit
c94eb3deeb
@ -175,7 +175,7 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
|
|||||||
using std::max;
|
using std::max;
|
||||||
|
|
||||||
autoOpen_ = mi.base.bv->cursor().isInside(this);
|
autoOpen_ = mi.base.bv->cursor().isInside(this);
|
||||||
mi.base.textwidth -= (int) (1.5 * TEXT_TO_INSET_OFFSET);
|
mi.base.textwidth -= int(1.5 * TEXT_TO_INSET_OFFSET);
|
||||||
|
|
||||||
switch (geometry()) {
|
switch (geometry()) {
|
||||||
case NoButton:
|
case NoButton:
|
||||||
@ -234,8 +234,8 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
|
|||||||
}
|
}
|
||||||
dim.asc += TEXT_TO_INSET_OFFSET;
|
dim.asc += TEXT_TO_INSET_OFFSET;
|
||||||
dim.des += TEXT_TO_INSET_OFFSET;
|
dim.des += TEXT_TO_INSET_OFFSET;
|
||||||
dim.wid += (int) (1.5 * TEXT_TO_INSET_OFFSET);
|
dim.wid += int(1.5 * TEXT_TO_INSET_OFFSET);
|
||||||
mi.base.textwidth += (int) (1.5 * TEXT_TO_INSET_OFFSET);
|
mi.base.textwidth += int(1.5 * TEXT_TO_INSET_OFFSET);
|
||||||
bool const changed = dim_ != dim;
|
bool const changed = dim_ != dim;
|
||||||
dim_ = dim;
|
dim_ = dim;
|
||||||
return changed;
|
return changed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user