diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2007-09-28 15:31:46 +0000 |
|---|---|---|
| committer | tavmjong <tavmjong@users.sourceforge.net> | 2007-09-28 15:31:46 +0000 |
| commit | 01a2a8201f5e79ae92dbcd6bc590a4c576d81782 (patch) | |
| tree | 934a5ed327ae11090f9bacc15d64588b6c0fbca8 /src/ui | |
| parent | Fixed color sliders and calculation (diff) | |
| download | inkscape-01a2a8201f5e79ae92dbcd6bc590a4c576d81782.tar.gz inkscape-01a2a8201f5e79ae92dbcd6bc590a4c576d81782.zip | |
Color Matrix Filter:
Matrix mode: set default to Identity matrix.
Matrix mode: multiply 5th column by 255.
Hue Rotation mode: convert degrees to radians for sin/cos.
(bzr r3811)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/filter-effects-dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 4ea5faf13..dc6fc06bb 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -423,8 +423,9 @@ private: for(int r = 0; r < rows; ++r) { Gtk::TreeRow row = *(_model->append()); + // Default to identity matrix for(int c = 0; c < cols; ++c, ++ndx) - row[_columns.cols[c]] = ndx < (int)values->size() ? (*values)[ndx] : 0; + row[_columns.cols[c]] = ndx < (int)values->size() ? (*values)[ndx] : (r == c ? 1 : 0); } } } |
