From 5c11bcf5c0dbe3975a50ec333b5fdac689a73ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Mon, 24 Mar 2014 17:15:54 +0100 Subject: don't treat negative values as placement failure --- src/text/placement.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/text') diff --git a/src/text/placement.cpp b/src/text/placement.cpp index be329eda30..852236b71f 100644 --- a/src/text/placement.cpp +++ b/src/text/placement.cpp @@ -305,10 +305,9 @@ void Placement::addFeature(TextBucket& bucket, PlacementProperty place = collision.place(glyphs, anchor, anchor.scale, maxPlacementScale, padding, horizontal); - - if (place.zoom >= 0.0f) { + if (place) { bucket.addGlyphs(glyphs, place.zoom, place.rotationRange, - zoom - zOffset); + zoom - zOffset); } } } -- cgit v1.2.1