summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-08-27 14:35:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-08-27 14:35:38 +0200
commit5a8694bbae92f6e68b11fb3de0047a711999a57a (patch)
treec8cd5def1db0b6ef857d93e16e1cb0c448d8276f
parentebea843b5c693eaef2f601d3739242ed6b8db02c (diff)
downloadkoffice-5a8694bbae92f6e68b11fb3de0047a711999a57a.tar.gz
koffice-5a8694bbae92f6e68b11fb3de0047a711999a57a.zip
Add workaround to compiler bug on Raspbian Wheezy
-rw-r--r--chalk/core/kis_exif_value.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chalk/core/kis_exif_value.cc b/chalk/core/kis_exif_value.cc
index 1981bd02..134d4009 100644
--- a/chalk/core/kis_exif_value.cc
+++ b/chalk/core/kis_exif_value.cc
@@ -667,8 +667,11 @@ TQString ExifValue::toString(uint i)
return TQString("%1 ").arg( asExifNumber( i ).m_long );
case EXIF_TYPE_RATIONAL:
return TQString("%1 / %2 ").arg( asExifNumber( i ).m_rational.numerator ).arg( asExifNumber( i ).m_rational.denominator );
- case EXIF_TYPE_SBYTE:
- return TQString("%1 ").arg( asExifNumber( i ).m_sbyte );
+ case EXIF_TYPE_SBYTE: {
+ /* workaround to compiler bug on Raspbian Wheezy */
+ TQ_INT8 o_sbyte = asExifNumber( i ).m_sbyte;
+ return TQString("%1 ").arg( o_sbyte );
+ }
case EXIF_TYPE_SSHORT:
return TQString("%1 ").arg( asExifNumber( i ).m_sshort );
case EXIF_TYPE_SLONG: