summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 8d929d1ad68b..22c364669e7e 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -123,7 +123,7 @@ void SfxPickListImpl::AddDocumentToPickList( const SfxObjectShell* pDocSh )
}
}
}
- ::std::optional<bool> const oIsReadOnly(pDocSh->IsReadOnly());
+ ::std::optional<bool> const oIsReadOnly(pMed->IsOriginallyLoadedReadOnly());
// add to svtool history options
SvtHistoryOptions::AppendItem( EHistoryType::PickList,