#include <extdef.h>
#include <boost/foreach.hpp>
+#include <boost/functional/hash.hpp>
#include <QAction>
#include <QApplication>
QRectF rect(start + cap_width, y - h / 2,
end - start - cap_width * 2, h);
+ if (rect.width() <= 4)
+ return;
+
p.setPen(text_color);
// Try to find an annotation that will fit