From b3bdfe12e965f321ec03553970bd5407d78a8c63 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Apr 2012 01:50:09 +0000 Subject: Round auto-arrange coordinates to nearest integer and spread things out a bit more. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4291 a436a847-0d15-0410-975c-d299462d15a1 --- src/Canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Canvas.cpp') diff --git a/src/Canvas.cpp b/src/Canvas.cpp index b7925d7..9ab4304 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -2037,8 +2037,8 @@ ganv_canvas_arrange(GanvCanvas* canvas) const string pos = agget(i->second, (char*)"pos"); const string x_str = pos.substr(0, pos.find(",")); const string y_str = pos.substr(pos.find(",") + 1); - const double cx = strtod(x_str.c_str(), NULL) * 1.1; - const double cy = strtod(y_str.c_str(), NULL) * 1.1; + const double cx = lrint(strtod(x_str.c_str(), NULL) * 1.2); + const double cy = lrint(strtod(y_str.c_str(), NULL) * 1.2); const double w = ganv_box_get_width(GANV_BOX(i->first)); /* Dot node positions are supposedly node centers, but things only -- cgit v1.2.1