r23749 by jghali - Fix coverity 1350343: avoid "Missing break in switch" due to intentional fallthrough
scribus-commit
scribus-commit at lists.scribus.net
Sun May 10 18:25:48 UTC 2020
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);
}
More information about the scribus-commit
mailing list