mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
prevent paragraph breaks in charstyle insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9156 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
02e9655770
commit
76cd9510e9
@ -1,3 +1,7 @@
|
||||
2004-11-01 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* insetcharstyle.C (priv_dispatch): prevent paragraph breaks
|
||||
|
||||
2004-11-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* ExternalSupport.C (updateExternal): convert files in the temp dir
|
||||
|
@ -126,7 +126,7 @@ void InsetCharStyle::draw(PainterInfo & pi, int x, int y) const
|
||||
params_.labelfont.color());
|
||||
pi.pain.line(x + dim_.wid - 2, y + desc, x + dim_.wid - 2, y + desc - 4,
|
||||
params_.labelfont.color());
|
||||
|
||||
|
||||
if (has_label_) {
|
||||
LyXFont font(params_.labelfont);
|
||||
font.realize(LyXFont(LyXFont::ALL_SANE));
|
||||
@ -158,6 +158,12 @@ void InsetCharStyle::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
else
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
break;
|
||||
// supress these
|
||||
// paragraph breaks not allowed in charstyle insets!
|
||||
case LFUN_BREAKPARAGRAPH:
|
||||
case LFUN_BREAKPARAGRAPHKEEPLAYOUT:
|
||||
case LFUN_BREAKPARAGRAPH_SKIP:
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user