Skip to content

Calc: Fix read-only file opening in edit mode#15568

Open
Darshan-upadhyay1110 wants to merge 1 commit intomainfrom
private/darshan/fix-xslx-RO-file-open-in-editmode
Open

Calc: Fix read-only file opening in edit mode#15568
Darshan-upadhyay1110 wants to merge 1 commit intomainfrom
private/darshan/fix-xslx-RO-file-open-in-editmode

Conversation

@Darshan-upadhyay1110
Copy link
Copy Markdown
Contributor

The guard !this._documentInfo was intended to call setPermission only on the first status message. However, this._documentInfo was assigned to textMsg one line before the check, causing the guard to always evaluate to false and preventing setPermission from ever executing.

Move the _documentInfo assignment after the read-only check so the guard functions as intended.

Change-Id: Ifc9ba699eb15fb69e74776856142c6a0267f3d03

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

The guard `!this._documentInfo` was intended to call `setPermission`
only on the first status message. However, `this._documentInfo` was
assigned to `textMsg` one line before the check, causing the guard
to always evaluate to false and preventing `setPermission` from
ever executing.

Move the `_documentInfo` assignment after the read-only check so
the guard functions as intended.

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ifc9ba699eb15fb69e74776856142c6a0267f3d03
@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/fix-xslx-RO-file-open-in-editmode branch from 58ea7ac to 782074b Compare April 20, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

1 participant