Mercurial > hg > svgui
comparison layer/PaintAssistant.cpp @ 682:1a0dfcbffaf1
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:06:40 +0000 |
parents | 4806715f7a19 |
children | b66fb15de477 |
comparison
equal
deleted
inserted
replaced
681:eaf4446a1bef | 682:1a0dfcbffaf1 |
---|---|
50 round = int(minVal + step * mult); | 50 round = int(minVal + step * mult); |
51 mult *= 10; | 51 mult *= 10; |
52 } while (!round && mult < limit); | 52 } while (!round && mult < limit); |
53 if (round) { | 53 if (round) { |
54 mult /= 10; | 54 mult /= 10; |
55 // std::cerr << "\n\nstep goes from " << step; | 55 // cerr << "\n\nstep goes from " << step; |
56 step = float(round) / mult; | 56 step = float(round) / mult; |
57 n = lrintf((maxVal - minVal) / step); | 57 n = lrintf((maxVal - minVal) / step); |
58 if (mult > 1) { | 58 if (mult > 1) { |
59 mult /= 10; | 59 mult /= 10; |
60 } | 60 } |
61 // std::cerr << " to " << step << " (n = " << n << ")" << std::endl; | 61 // cerr << " to " << step << " (n = " << n << ")" << endl; |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 for (int i = 0; i <= n; ++i) { | 65 for (int i = 0; i <= n; ++i) { |
66 | 66 |