diff options
author | David Robillard <d@drobilla.net> | 2012-04-28 01:50:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-28 01:50:09 +0000 |
commit | b3bdfe12e965f321ec03553970bd5407d78a8c63 (patch) | |
tree | 9d7c210dc027081ff2e9002f7cd3150e4a42bf00 /src | |
parent | 224f505515cf133ff480aa3af3972a934c21dbe8 (diff) | |
download | ganv-b3bdfe12e965f321ec03553970bd5407d78a8c63.tar.gz ganv-b3bdfe12e965f321ec03553970bd5407d78a8c63.tar.bz2 ganv-b3bdfe12e965f321ec03553970bd5407d78a8c63.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/Canvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |