summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/satellitepairarray.h
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-22 17:27:17 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-22 17:27:17 +0000
commit8bd246d8b59749e15de4d5d0d78e9b82fa8a601a (patch)
tree5f9792fbade2d276210c43a904d59d7e7a689681 /src/live_effects/parameter/satellitepairarray.h
parentupdate to trunk (diff)
downloadinkscape-8bd246d8b59749e15de4d5d0d78e9b82fa8a601a.tar.gz
inkscape-8bd246d8b59749e15de4d5d0d78e9b82fa8a601a.zip
Fixed bug when deleting nodes
(bzr r13645.1.51)
Diffstat (limited to 'src/live_effects/parameter/satellitepairarray.h')
-rw-r--r--src/live_effects/parameter/satellitepairarray.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/parameter/satellitepairarray.h b/src/live_effects/parameter/satellitepairarray.h
index 9b22a386b..a85e3f83f 100644
--- a/src/live_effects/parameter/satellitepairarray.h
+++ b/src/live_effects/parameter/satellitepairarray.h
@@ -30,7 +30,7 @@ namespace LivePathEffect {
class FilletChamferKnotHolderEntity;
-class SatellitePairArrayParam : public ArrayParam<std::pair<unsigned int, Geom::Satellite> > {
+class SatellitePairArrayParam : public ArrayParam<std::pair<size_t, Geom::Satellite> > {
public:
SatellitePairArrayParam(const Glib::ustring &label,
const Glib::ustring &tip,
@@ -81,7 +81,7 @@ private:
class FilletChamferKnotHolderEntity : public KnotHolderEntity {
public:
- FilletChamferKnotHolderEntity(SatellitePairArrayParam *p, unsigned int index);
+ FilletChamferKnotHolderEntity(SatellitePairArrayParam *p, size_t index);
virtual ~FilletChamferKnotHolderEntity() {}
virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
@@ -89,13 +89,13 @@ public:
virtual void knot_click(guint state);
void knot_set_offset(Geom::Satellite);
/** Checks whether the index falls within the size of the parameter's vector */
- bool valid_index(unsigned int index) const {
+ bool valid_index(size_t index) const {
return (_pparam->_vector.size() > index);
};
private:
SatellitePairArrayParam *_pparam;
- unsigned int _index;
+ size_t _index;
};
} //namespace LivePathEffect