vcl/ios/DataFlavorMapping.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 05d304ce155bb8a967c55f7b037dfbfe3ad6a416
Author:     Patrick Luby <guibmac...@gmail.com>
AuthorDate: Sat Jul 6 08:20:51 2024 -0400
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Thu Jul 11 15:58:59 2024 +0200

    Move break inside conditional statement to match macOS code
    
    Commit 839346d3f20af0c6db1377486cbff3f2ff3e2387 for iOS was miscopied
    from commit e4cbe169bd1236698a573bf4758d8ae8519a1c08 so correct the
    copy error to bring the iOS code back in sync with the macOS code.
    
    Change-Id: I3bb8cc85465adf978e50fab1a802c3f062b7a728
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170067
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Patrick Luby <guibomac...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    (cherry picked from commit e1cfc655e5112b4767da7c53000b859f3844b8e3)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170110
    Tested-by: Jenkins

diff --git a/vcl/ios/DataFlavorMapping.cxx b/vcl/ios/DataFlavorMapping.cxx
index ded47097015c..f2d039f2d6a9 100644
--- a/vcl/ios/DataFlavorMapping.cxx
+++ b/vcl/ios/DataFlavorMapping.cxx
@@ -403,11 +403,11 @@ NSString* 
DataFlavorMapper::openOfficeToSystemFlavor(const DataFlavor& oOOFlavor
                 sysFlavor = flavorMap[i].SystemFlavor;
             else
                 sysFlavor = OUStringToNSString(oOOFlavor.MimeType);
-        }
 
-        // Flavor set, then break
-        if (sysFlavor != nullptr)
-            break;
+            // Flavor set, then break
+            if (sysFlavor != nullptr)
+                break;
+        }
     }
 
     if (!sysFlavor)

Reply via email to