]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextctrl.cpp
OSX regrouping
[wxWidgets.git] / src / richtext / richtextctrl.cpp
index d55b6a9bcc59c14b0a70ae44802b588067e58ee4..485aa1e2b123ca0f4d150134f862609933dcb45f 100644 (file)
@@ -697,7 +697,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
             wxString text;
             text = wxRichTextLineBreakChar;
             GetBuffer().InsertTextWithUndo(newPos+1, text, this);
-                       m_caretAtLineStart = true;
+            m_caretAtLineStart = true;
             PositionCaret();
         }
         else
@@ -2301,7 +2301,7 @@ bool wxRichTextCtrl::WriteImage(const wxBitmap& bitmap, wxBitmapType bitmapType)
 /// Insert a newline (actually paragraph) at the current insertion point.
 bool wxRichTextCtrl::Newline()
 {
-    return GetBuffer().InsertNewlineWithUndo(m_caretPosition+1, this);
+    return GetBuffer().InsertNewlineWithUndo(m_caretPosition+1, this, wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE);
 }
 
 /// Insert a line break at the current insertion point.