Author: jghali
Date: Sun May 10 18:25:48 2020
New Revision: 23749

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23749
Log:
Fix coverity 1350343: avoid "Missing break in switch" due to intentional 
fallthrough

Modified:
    trunk/Scribus/scribus/imagedataloaders/scimgdataloader_jpeg.cpp

Modified: trunk/Scribus/scribus/imagedataloaders/scimgdataloader_jpeg.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23749&path=/trunk/Scribus/scribus/imagedataloaders/scimgdataloader_jpeg.cpp
==============================================================================
--- trunk/Scribus/scribus/imagedataloaders/scimgdataloader_jpeg.cpp     
(original)
+++ trunk/Scribus/scribus/imagedataloaders/scimgdataloader_jpeg.cpp     Sun May 
10 18:25:48 2020
@@ -532,11 +532,13 @@
                                        break;
                                case 4:
                                        M = flip;
+                                       /* fall through */
                                case 3:
                                        M.rotate (180);
                                        break;
                                case 5:
                                        M = flip;
+                                       /* fall through */
                                case 6:
                                        M.rotate(90);
                                        oxres = m_imageInfoRecord.xres;
@@ -546,6 +548,7 @@
                                        break;
                                case 7:
                                        M = flip;
+                                       /* fall through */
                                case 8:
                                        M.rotate(270);
                                        oxres = m_imageInfoRecord.xres;
@@ -553,7 +556,8 @@
                                        m_imageInfoRecord.xres = oyres;
                                        m_imageInfoRecord.yres = oxres;
                                        break;
-                               default: break; // should never happen
+                               default:
+                                       break; // should never happen
                        }
                        m_image = m_image.transformed(M);
                }


_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit

Reply via email to