helpauthoring/HelpAuthoring/Validate.xba | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
New commits: commit 8a50ace751fbeb22e3fb0607fdb00975db637b66 Author: Yousuf Philips <philip...@hotmail.com> Date: Thu Sep 10 02:55:39 2015 +0400 Always jump to cursor position to insert new paragraph data Change-Id: I76041a4cfd056da18812771bd16218ca63b45568 Reviewed-on: https://gerrit.libreoffice.org/18454 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> diff --git a/helpauthoring/HelpAuthoring/Validate.xba b/helpauthoring/HelpAuthoring/Validate.xba index cbdab4b..70e07a7 100644 --- a/helpauthoring/HelpAuthoring/Validate.xba +++ b/helpauthoring/HelpAuthoring/Validate.xba @@ -209,18 +209,16 @@ Sub CheckParaID(TE As Object) If bWarnParaNoID Then Warn("Paragraph has no ID.","IDs will be assigned on save. You can also assign an ID using the Assign Paragraph ID menu item",TPE) bWarnParaNoID = FALSE - InsertNewParaData - Else - oCur = TE.getText.createTextCursorByRange(TE) - thiscomponent.getcurrentcontroller.select(oCur) - InsertNewParaData End If + + oCur = TE.getText.createTextCursorByRange(TE) + thiscomponent.getcurrentcontroller.select(oCur) + InsertNewParaData ElseIf posID > 1 Then Terminate("Paragraph ID not at the start of the paragraph. The paragraph ID must be the first element of a paragraph. Move the ID to the beginning of the paragraph",TPE) End If End If - End If End Sub _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits