Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2670)

Issue 6450113: layout.cc: do not draw empty boxes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by Keith
Modified:
11 years, 7 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

layout.cc: do not draw empty boxes; warn about, but do not draw, boxed with reversed dimensions

Patch Set 1 #

Patch Set 2 : trying again #

Total comments: 3

Patch Set 3 : accept reversed ranges in round_filled_box #

Patch Set 4 : reject reversed ranges, and warn #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -10 lines) Patch
M lily/lookup.cc View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M scm/fret-diagrams.scm View 1 2 3 1 chunk +4 lines, -4 lines 5 comments Download

Messages

Total messages: 10
joeneeman
lgtm
11 years, 8 months ago (2012-08-12 10:11:43 UTC) #1
Graham Percival
LGTM
11 years, 8 months ago (2012-08-12 14:32:17 UTC) #2
Keith
http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc File lily/lookup.cc (right): http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc#newcode172 lily/lookup.cc:172: if (b.x ().length () < blotdiameter) It is arguably ...
11 years, 8 months ago (2012-09-03 07:25:53 UTC) #3
dak
http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc File lily/lookup.cc (right): http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc#newcode172 lily/lookup.cc:172: if (b.x ().length () < blotdiameter) On 2012/09/03 07:25:53, ...
11 years, 8 months ago (2012-09-03 08:16:27 UTC) #4
Keith
http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc File lily/lookup.cc (right): http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc#newcode172 lily/lookup.cc:172: if (b.x ().length () < blotdiameter) On 2012/09/03 08:16:27, ...
11 years, 8 months ago (2012-09-03 22:35:20 UTC) #5
joeneeman
On 2012/09/03 08:16:27, dak wrote: > http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc > File lily/lookup.cc (right): > > http://codereview.appspot.com/6450113/diff/10001/lily/lookup.cc#newcode172 > ...
11 years, 8 months ago (2012-09-03 22:54:24 UTC) #6
Keith
On 2012/09/03 22:54:24, joeneeman wrote: > > On 2012/09/03 07:25:53, Keith wrote: > > > ...
11 years, 8 months ago (2012-09-04 01:08:01 UTC) #7
dak
http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm File scm/fret-diagrams.scm (right): http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm#newcode649 scm/fret-diagrams.scm:649: (ordered-cons (car corner1) (car corner2)) I was wondering whether ...
11 years, 7 months ago (2012-09-17 09:59:52 UTC) #8
Graham Percival
http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm File scm/fret-diagrams.scm (right): http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm#newcode642 scm/fret-diagrams.scm:642: (corner1 from the context, I gather than corner1 is ...
11 years, 7 months ago (2012-09-18 04:52:05 UTC) #9
Keith
11 years, 7 months ago (2012-09-18 05:24:38 UTC) #10
http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm
File scm/fret-diagrams.scm (right):

http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm#newcode642
scm/fret-diagrams.scm:642: (corner1
On 2012/09/18 04:52:05, Graham Percival wrote:
>  Could we get a comment stating that -- the fact that corner1 and
> corner2 will be bottom-left and top-right, but not necessarily in that order?

After 'stencil-coordinates transforms them to coordinates on the page, they
could be top-left and bottom right.  I renamed them because thinking about which
corners they are is merely distraction.

  ;; corner1 and corner 2 are opposite corners of the thick fret

http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm#newcode649
scm/fret-diagrams.scm:649: (ordered-cons (car corner1) (car corner2))
On 2012/09/17 09:59:52, dak wrote:
> I was wondering whether it would not make more sense to draw the whole thing
in
> one standard orientation first and then turn the result as a whole rather
than
> single coordinates.

That would be a complete rewrite.

> However, that might make it harder to have lettering be always upright,

It would seem to.

http://codereview.appspot.com/6450113/diff/8003/scm/fret-diagrams.scm#newcode650
scm/fret-diagrams.scm:650: (ordered-cons (cdr corner1) (cdr corner2))
 ;; Intervals should have limits increasing order (else they are considered
empty)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b