]> git.lyx.org Git - features.git/commitdiff
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
authorRichard Heck <rgheck@comcast.net>
Fri, 8 Aug 2008 16:19:28 +0000 (16:19 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 8 Aug 2008 16:19:28 +0000 (16:19 +0000)
cur.inset() returns InsetTabular as the inset the cursor is in, not InsetTableCell.
It still does that, but now we return the right thing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26098 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.h

index 4b2d31d09f070879a59795566e2d4306f0dcb729..1b0971006ce554bed5f21db7261ac8b228de90df 100644 (file)
@@ -809,6 +809,8 @@ public:
        bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
        ///
        void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+       ///
+       virtual bool usePlainLayout() const { return true; }
 
        ///
        virtual InsetTabular * asInsetTabular() { return this; }