diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-27 12:45:20 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-27 10:31:44 +0100 |
commit | 4df22b4d3d4ae1ec0c4d32f614bd2cd8ec13143e (patch) | |
tree | d0c92a78cd21166860ad4867be5b0a949a56c3c5 /sw/inc/unotxdoc.hxx | |
parent | 67ec38d8afbe4cc2a16d6396a8bbdc2788c23a42 (diff) |
tdf#158862: check if document is initialized
Change-Id: I5b380c0629a756a5d7f0f06fb95fab996360b821
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161366
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/inc/unotxdoc.hxx')
-rw-r--r-- | sw/inc/unotxdoc.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 01619df1d382..32ae6c27e452 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -210,6 +210,9 @@ private: virtual SdrModel& getSdrModelFromUnoModel() const override; virtual ~SwXTextDocument() override; + + SwDoc& GetDocOrThrow() const; + public: SwXTextDocument(SwDocShell* pShell); |