From 25372f07a247a5a4e08d307e72c3d1dd1093c796 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Mon, 12 Jul 2021 18:04:20 +0200 Subject: [PATCH] Safe go to range with controller select --- description.xml | 2 +- ePublishing/journals.xba | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/description.xml b/description.xml index 910af21..ea8d741 100644 --- a/description.xml +++ b/description.xml @@ -3,7 +3,7 @@ xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink"> - + Инструменты для создания электронных изданий diff --git a/ePublishing/journals.xba b/ePublishing/journals.xba index cbe81bd..e0b3d38 100644 --- a/ePublishing/journals.xba +++ b/ePublishing/journals.xba @@ -1,6 +1,6 @@ -Private sub journalsMark28 +Private sub journalsMark31 End sub Dim templateName As String @@ -228,7 +228,7 @@ Private Function getUDK() backspace sendRM End If - oViewCursor.goToRange(oSavePosition, false) + Thiscomponent.CurrentController.select(oSavePosition) End Function Private Function getCopyright() @@ -1622,4 +1622,4 @@ Function getPageNumber(cursor As Object) As String End Function - + \ No newline at end of file