diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-10-02 20:42:41 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-10-04 11:43:40 +0200 |
commit | 1ea27b7e35faf6619112bf3f1d69e4ec41c0bf23 (patch) | |
tree | 22a88c2721e7cb3814e9b14f03c312ad1dde2858 /sw/source | |
parent | a8f522f4257729ea11178ebf165fdd3a2b7be240 (diff) |
vcl: remove defensive programming from SetCurrentStructureElement()
Change-Id: I47b0f29a564cdbdd1a55fe4a332fa9efd63af557
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157505
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/text/EnhancedPDFExportHelper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 9ebc233dc687..b71b699b8e36 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -478,8 +478,7 @@ void SwTaggedPDFHelper::CheckRestoreTag() const { if ( m_nRestoreCurrentTag != -1 ) { - const bool bSuccess = mpPDFExtOutDevData->SetCurrentStructureElement( m_nRestoreCurrentTag ); - OSL_ENSURE( bSuccess, "Failed to restore reopened tag" ); + mpPDFExtOutDevData->SetCurrentStructureElement( m_nRestoreCurrentTag ); #if OSL_DEBUG_LEVEL > 1 aStructStack.pop_back(); |