In these last days LibreWriter has a bug executing a macro (set as Open Document). Opening a document the focus goes on the bookmark "here", set with another macro in CloseDocument, which create that bookmark where the cursor is. This macro had always worked, but now, when I open a document with Writer, at the beginning the focus goes, as expected, to the bookmark "here", but after few seconds it goes elsewhere. The cursor is always in the supposed place, so, by the left arrow, I am quickly on the desired place. But it is a strange behavior, quite annoying. Version: 7.3.0.3 / LibreOffice Community Build ID: 30(Build:3) CPU threads: 2; OS: Linux 5.13; UI render: default; VCL: gtk3 Locale: it-IT (en_US.UTF-8); UI: en-US Ubuntu package version: 1:7.3.0~rc3-0ubuntu0.20.04.1~lo1 Calc: threaded
Please ask your question in https://ask.libreoffice.org/. And show there what is your macro and better a sample file. And if you want to open the document where you left it, you only need to have some fields for the user data, covered in Menu/Tools/Options/LibreOffice/General
No: I am speaking not about a new macro, but about one *already working* in the past, and *for years*. It is only in the last few days that I have this problem: and that's way I think that is a bug. Consider also that that macro works as expected *manually* (after opening a file): and that is another reason for I think that is a bug.
[Automated Action] NeedInfo-To-Unconfirmed
(In reply to m.a.riosv from comment #1) > And if you want to open the document where you left it, you only need to > have some fields for the user data, covered in > Menu/Tools/Options/LibreOffice/General But, in this you are right: now (unlike in the past), even without a macro, a document is opened focusing the point where was closed. Therefore my macro is now not necessary. However, it is curious that it is not only not necessary, but also dangerous, so to say :) Something has changed...
That is the reason I commented to ask in the forum, there are a very helpful people. The better it's to add to the question the file with the macro, otherwise no one can help to find the issue.
I see. Thank you!
Duns, you should either attach file with those macros or close the bug.
Yes, your worked, but recently I have a file (just one) that doesn't opens when it was closed. But it opens at the beginning of document (odt). It has embedded my personal data, so I don't understand this strange behavior.
your tip worked
I re-write my post, because of my typing errors. Sorry (could you delete it?). Yes, your tip worked, but recently I have a file (just one) that doesn't opens where it was closed. But it opens at the beginning of document (odt). It has embedded my personal data, so I don't understand this strange behavior.
This started as a macro bug and turned out it's not or some other issue. Bug report is single original issue so I close this. We don't know the cause. AS for opening, that's different, maybe bug 146988.
That bug is quite different. At the present I have problem only with one file (and I don't know why). You asked my macro. Here you are: sub vai_qui If ThisComponent.supportsService("com.sun.star.text.TextDocument") Then oBookmarks = ThisComponent.getBookmarks() If NOT oBookmarks.hasByName("qui") Then Exit Sub End If ViewCursor = ThisComponent.CurrentController.getviewCursor() Bookmark = ThisComponent.Bookmarks.getByName("qui").Anchor ViewCursor.gotorange(Bookmark, False) else Exit Sub End If end sub With this macro on opening document I before I go to the right point, but after a few seconds I go elsewhere (without any reason).
LibreOffice returns to the last saved position A.) if you save in ODT format B.) you have an user name specified in options - User Data.
Usually. But not always.
"Reopened" is wrong status, when known fix doesn't work. This bug was never confirmed, not it has steps for independent test. So you have a problem with only one file. Did you try opening multiple times without macro, to see if really bug 146988? This cannot stay open unless you attach a file, without personal info.
Dear Duns, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
recently I didn't notice this bug. Therefore it seems solved.