From 3a3a7b39b87515a6fa60c17acf6c1e7e0d70d81d Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 29 Apr 2004 07:40:30 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 2 ++ lily/include/page.hh | 1 + lily/page.cc | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e518fb3244..db7b10c0c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ 2004-04-29 Jan Nieuwenhuizen + * lily/include/page.hh (class Page): Declare left_margin (). + * lily/page.cc: Remove paper var caching. 2004-04-28 Jan Nieuwenhuizen diff --git a/lily/include/page.hh b/lily/include/page.hh index c12d32c02c..c0f929432e 100644 --- a/lily/include/page.hh +++ b/lily/include/page.hh @@ -41,6 +41,7 @@ public: /* available area for text. */ Real text_height () const; + Real left_margin () const; SCM to_stencil () const; }; diff --git a/lily/page.cc b/lily/page.cc index f296b4bc8b..85b7b7d875 100644 --- a/lily/page.cc +++ b/lily/page.cc @@ -107,6 +107,7 @@ Page::to_stencil () const return scm_call_1 (proc, self_scm ()); } +//urg Real Page::left_margin () const { @@ -122,7 +123,7 @@ LY_DEFINE (ly_page_header_lines_footer_stencil, "ly:page-header-lines-footer-ste SCM_ASSERT_TYPE (p, page, SCM_ARG1, __FUNCTION__, "page"); Stencil stencil; - Offset o (p->paper_->get_dimension (ly_symbol2scm ("left-margin")), + Offset o (p->left_margin (), p->paper_->get_dimension (ly_symbol2scm ("top-margin"))); Real vfill = (p->line_count_ > 1 -- 2.39.5