clear waveform cache when shape changes - fixes #6525
[ardour.git] / libs / canvas / stateful_image.cc
index b62da9cc8ccfeb0a535a29bfcca677136b30c754..f5cc76dd039694e1bbaf9b1c51b4760ef5ba8dca 100644 (file)
@@ -101,7 +101,7 @@ StatefulImage::load_states (const XMLNode& node)
                        error << _("no ID for state") << endmsg;
                        continue;
                }
-               sscanf (prop->value().c_str(), "%zd", &id);
+               sscanf (prop->value().c_str(), "%" G_GSIZE_FORMAT, &id);
 
                if ((prop = (*i)->property ("image")) == 0) {
                        error << _("no image for state") << endmsg;