mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
fix crash with layout-paste
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fec072f968
commit
a58209e735
@ -1,3 +1,8 @@
|
||||
2002-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* text2.C (pasteEnvironmentType): avoid crash if layout-copy has
|
||||
not been invoked
|
||||
|
||||
2002-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* lyxfunc.C (getStatus): query lyx_gui::getStatus() to catter for
|
||||
|
@ -1423,6 +1423,8 @@ void LyXText::copyEnvironmentType()
|
||||
|
||||
void LyXText::pasteEnvironmentType(BufferView * bview)
|
||||
{
|
||||
// do nothing if there has been no previous copyEnvironmentType()
|
||||
if (!copylayouttype.empty())
|
||||
setLayout(bview, copylayouttype);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user