summaryrefslogtreecommitdiffstats
path: root/chalk
diff options
context:
space:
mode:
Diffstat (limited to 'chalk')
-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: