summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b282f7d)
raw | patch | inline | side by side (parent: b282f7d)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 15 Mar 2009 21:01:05 +0000 (21:01 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 15 Mar 2009 21:01:05 +0000 (21:01 +0000) |
src/live_effects/parameter/array.h | patch | blob | history |
index 4da329c4dc7f529f6c03f795d91399d91ce178e0..e5f230111003d1d757311c6d0e6a45e20917f8fb 100644 (file)
Inkscape::UI::Widget::Registry* wr,
Effect* effect,
size_t n = 0 )
- : Parameter(label, tip, key, wr, effect), _vector(n)
+ : Parameter(label, tip, key, wr, effect), _vector(n), _default_size(n)
{
}
}
void param_set_default() {
- param_setValue( std::vector<StorageType>() );
+ param_setValue( std::vector<StorageType>(_default_size) );
}
void param_set_and_write_new_value(std::vector<StorageType> const &new_vector) {
ArrayParam& operator=(const ArrayParam&);
std::vector<StorageType> _vector;
+ size_t _default_size;
void writesvg(SVGOStringStream &str, std::vector<StorageType> const &vector) const {
for (unsigned int i = 0; i < vector.size(); ++i) {