]> git.donarmstrong.com Git - lilypond.git/blob - lily/dimension-cache.cc
(Paper_column): copy rank_. This fixes
[lilypond.git] / lily / dimension-cache.cc
1 /*   
2   dimension-cache.cc --  implement Dimension_cache
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7  */
8
9
10 #include <math.h>
11
12 #include "dimension-cache.hh"
13 #include "warn.hh"
14 #include "grob.hh"
15
16 Dimension_cache::Dimension_cache (Dimension_cache const &d)
17 {
18   init ();
19   dimension_ = d.dimension_;
20
21   offset_ = d.offset_;
22   offset_callbacks_ = d.offset_callbacks_;
23   offsets_left_ = d.offsets_left_;
24   parent_ = d.parent_;  
25 }
26
27 Dimension_cache::Dimension_cache ()
28 {
29   init ();
30 }
31
32 void
33 Dimension_cache::init ()
34 {
35   dimension_ = SCM_EOL;
36
37   offsets_left_ = 0;
38   offset_callbacks_ = SCM_EOL;
39   offset_ = 0.0;
40   
41   parent_ = 0;
42 }
43
44
45
46
47
48
49