]> git.donarmstrong.com Git - lilypond.git/commitdiff
Create Stencil::is_empty (Axis)
authorDavid Kastrup <dak@gnu.org>
Sun, 28 Apr 2013 11:07:28 +0000 (13:07 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 26 May 2013 00:33:02 +0000 (02:33 +0200)
lily/include/stencil.hh
lily/stencil.cc

index 65c0b7a0f1e295e0523b3f035c4b7ad8fa8bdd30..6b03eb07a0eea1984892f90cba96d7f6a45169c9 100644 (file)
@@ -84,6 +84,7 @@ public:
   Interval extent (Axis) const;
   Box extent_box () const;
   bool is_empty () const;
+  bool is_empty (Axis) const;
   Stencil in_color (Real r, Real g, Real b) const;
   static SCM skylines_from_stencil (SCM, Real, Axis);
 };
index 833d5be0fd55cb12b732b0725d17738196d5b75f..6d577482f337723781f0201ccbc893d739065ef8 100644 (file)
@@ -71,6 +71,12 @@ Stencil::is_empty () const
           || dim_.is_empty ());
 }
 
+bool
+Stencil::is_empty (Axis a) const
+{
+  return dim_.is_empty (a);
+}
+
 SCM
 Stencil::expr () const
 {