filter/source/svg/svgfilter.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 845cd5f7663f12c86e3b2a842e6d682948e5631b
Author:     Mike Kaganski <[email protected]>
AuthorDate: Tue Dec 2 12:36:39 2025 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Tue Dec 2 15:56:57 2025 +0100

    Simplify a bit
    
    Change-Id: I1f2c5654ba36120143aa4c64e27ec7886d85ba73
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194903
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index e59e36d2e1ee..56e1d3b4a2e9 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -187,8 +187,6 @@ css::uno::Reference<css::frame::XController> 
SVGFilter::fillDrawImpressSelectedP
                 }
                 mSelectedPages.push_back(xDrawPage);
             }
-            if (!mSelectedPages.empty())
-                return xController;
         }
     }
 
@@ -461,8 +459,7 @@ bool SVGFilter::filterImpressOrDraw( const Sequence< 
PropertyValue >& rDescripto
                 {
                     sal_Int32 nDPCount = xDrawPages->getCount();
 
-                    sal_Int32 i;
-                    for( i = 0; i < nDPCount; ++i )
+                    for (sal_Int32 i = 0; i < nDPCount; ++i)
                     {
                         if( nPageToExport != -1 && nPageToExport == i )
                         {
@@ -473,12 +470,12 @@ bool SVGFilter::filterImpressOrDraw( const Sequence< 
PropertyValue >& rDescripto
                         {
                             uno::Reference< drawing::XDrawPage > xDrawPage( 
xDrawPages->getByIndex( i ), uno::UNO_QUERY );
                             Reference< XPropertySet > xPropSet( xDrawPage, 
UNO_QUERY );
-                            bool bIsSlideVisible = true;     // default: true
                             if (xPropSet.is())
                             {
                                 Reference< XPropertySetInfo > xPropSetInfo = 
xPropSet->getPropertySetInfo();
                                 if (xPropSetInfo.is() && 
xPropSetInfo->hasPropertyByName(u"Visible"_ustr))
                                 {
+                                    bool bIsSlideVisible = true;     // 
default: true
                                     xPropSet->getPropertyValue( 
u"Visible"_ustr )  >>= bIsSlideVisible;
                                     if (!bIsSlideVisible)
                                         continue;

Reply via email to