provide PolyItem::pop_back()
This commit is contained in:
parent
e0c24f5bcf
commit
de67226c90
|
@ -37,6 +37,7 @@ public:
|
|||
|
||||
virtual void set (Points const&);
|
||||
virtual void add_point (Duple const &);
|
||||
void pop_back();
|
||||
Points const& get () const;
|
||||
|
||||
void dump (std::ostream&) const;
|
||||
|
|
|
@ -149,6 +149,15 @@ PolyItem::add_point (Duple const & d)
|
|||
end_change ();
|
||||
}
|
||||
|
||||
void
|
||||
PolyItem::pop_back ()
|
||||
{
|
||||
begin_change ();
|
||||
_points.pop_back ();
|
||||
set_bbox_dirty ();
|
||||
end_change ();
|
||||
}
|
||||
|
||||
Points const&
|
||||
PolyItem::get () const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user