]> git.lyx.org Git - lyx.git/commitdiff
Crash fix for in mathed cursor.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 26 Sep 2007 19:45:17 +0000 (19:45 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 26 Sep 2007 19:45:17 +0000 (19:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20523 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ControlParagraph.cpp

index 290a4bc0846b103db8cdb680e8c89e772acd19ce..0b24b60308d05f4f463d3e8f5417b6537822c2e5 100644 (file)
@@ -44,13 +44,13 @@ ParagraphParameters & ControlParagraph::params()
                return multiparsel_;
        }
 
-       return bufferview()->cursor().paragraph().params();
+       return bufferview()->cursor().innerParagraph().params();
 }
 
 
 ParagraphParameters const & ControlParagraph::params() const
 {
-       return bufferview()->cursor().paragraph().params();
+       return bufferview()->cursor().innerParagraph().params();
 }
 
 
@@ -85,13 +85,13 @@ bool ControlParagraph::canIndent() const
 
 LyXAlignment ControlParagraph::alignPossible() const
 {
-       return bufferview()->cursor().paragraph().layout()->alignpossible;
+       return bufferview()->cursor().innerParagraph().layout()->alignpossible;
 }
 
 
 LyXAlignment ControlParagraph::alignDefault() const
 {
-       return bufferview()->cursor().paragraph().layout()->align;
+       return bufferview()->cursor().innerParagraph().layout()->align;
 }
 
 } // namespace frontend