diff options
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index ebf5ff841a7e..7740b5c1a41a 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -1450,9 +1450,10 @@ void SAL_CALL SfxBaseModel::print(const Sequence< beans::PropertyValue >& rOptio SfxModelGuard aGuard( *this ); impl_getPrintHelper(); - m_pData->m_xPrintable->print( rOptions ); -} + // tdf#123728 Always print on main thread to avoid deadlocks + vcl::solarthread::syncExecute([this, &rOptions]() { m_pData->m_xPrintable->print(rOptions); }); +} // XStorable |