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

Issue 163048: 787 -- Eliminate segfaults due to empty list and unitialized properties (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by Carl
Modified:
14 years, 4 months ago
Reviewers:
Neil Puttock
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

787 -- Eliminate segfaults due to empty list and unitialized properties

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M lily/script-column.cc View 2 chunks +15 lines, -8 lines 6 comments Download

Messages

Total messages: 1
Neil Puttock
14 years, 4 months ago (2009-12-02 21:48:55 UTC) #1
LGTM.

http://codereview.appspot.com/163048/diff/1/2
File lily/script-column.cc (left):

http://codereview.appspot.com/163048/diff/1/2#oldcode161
lily/script-column.cc:161: g->set_property ("outside-staff-priority",
indent
(+ following lines)

http://codereview.appspot.com/163048/diff/1/2#oldcode168
lily/script-column.cc:168: g->set_property (
indent
(+ following lines)

http://codereview.appspot.com/163048/diff/1/2
File lily/script-column.cc (right):

http://codereview.appspot.com/163048/diff/1/2#newcode148
lily/script-column.cc:148: first =  unsmob_grob (scm_car (ss));
indent
extra space after =

http://codereview.appspot.com/163048/diff/1/2#newcode149
lily/script-column.cc:149: default_outside_staff =
first->get_property("outside-staff-priority");
indent

get_property (

http://codereview.appspot.com/163048/diff/1/2#newcode169
lily/script-column.cc:169: robust_scm2double (last_outside_staff, 0) + 0.1));
scm_to_double (last_outside_staff) (it must be a number since it's inside the
`if' block)

http://codereview.appspot.com/163048/diff/1/2#newcode177
lily/script-column.cc:177: scm_from_double (robust_scm2double
(last_outside_staff, 0) +
scm_to_double (last_outside_staff)
Sign in to reply to this message.

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