summaryrefslogtreecommitdiffstats
path: root/src/kernel/qmngio.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
commitfe7969ef886d7287fa959929ddd33fbad8407884 (patch)
tree589aacc109d27561a5188bb46bce27c78bad8f5b /src/kernel/qmngio.cpp
parentdba8a853b65e5707e48450e5085e0ff0513b4203 (diff)
downloadtqt3-fe7969ef886d7287fa959929ddd33fbad8407884.tar.gz
tqt3-fe7969ef886d7287fa959929ddd33fbad8407884.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qmngio.cpp')
-rw-r--r--src/kernel/qmngio.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/qmngio.cpp b/src/kernel/qmngio.cpp
index bf4504c3c..a7ab00e0c 100644
--- a/src/kernel/qmngio.cpp
+++ b/src/kernel/qmngio.cpp
@@ -258,31 +258,31 @@ TQImageFormat* TQMNGFormatType::decoderFor( const uchar* buffer, int length )
{
if (length < 8) return 0;
- if (buffer[0]==138 // MNG signature
+ if ((buffer[0]==138 // MNG signature
&& buffer[1]=='M'
&& buffer[2]=='N'
&& buffer[3]=='G'
&& buffer[4]==13
&& buffer[5]==10
&& buffer[6]==26
- && buffer[7]==10
- || buffer[0]==139 // JNG signature
+ && buffer[7]==10)
+ || (buffer[0]==139 // JNG signature
&& buffer[1]=='J'
&& buffer[2]=='N'
&& buffer[3]=='G'
&& buffer[4]==13
&& buffer[5]==10
&& buffer[6]==26
- && buffer[7]==10
+ && buffer[7]==10)
#ifdef QT_NO_IMAGEIO_PNG // if we don't have native PNG support use libmng
- || buffer[0]==137 // PNG signature
+ || (buffer[0]==137 // PNG signature
&& buffer[1]=='P'
&& buffer[2]=='N'
&& buffer[3]=='G'
&& buffer[4]==13
&& buffer[5]==10
&& buffer[6]==26
- && buffer[7]==10
+ && buffer[7]==10)
#endif
)
return new TQMNGFormat;