summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7fb68b5)
raw | patch | inline | side by side (parent: 7fb68b5)
author | kiirala <kiirala@users.sourceforge.net> | |
Wed, 15 Aug 2007 15:09:25 +0000 (15:09 +0000) | ||
committer | kiirala <kiirala@users.sourceforge.net> | |
Wed, 15 Aug 2007 15:09:25 +0000 (15:09 +0000) |
src/display/nr-filter.cpp | patch | blob | history | |
src/sp-filter.cpp | patch | blob | history |
index 34a33e2b88bbcd4acc53f4916c7a7858c768aee0..b97784ec406ebf3135a585d7e92534227ba498c3 100644 (file)
// If filter effects region is not paraller to viewport,
// we must first undo the rotation / shear.
// It will be redone after filtering.
- // If there is only rotation and uniform scaling (zoom), let's skip this,
- // as it will not make a difference with gaussian blur.
- if ((fabs(trans[1]) > 1e-6 || fabs(trans[2]) > 1e-6) &&
- !(fabs(trans[0] - trans[3]) < 1e-6 && fabs(trans[1] + trans[2]) < 1e-6)) {
+ // If there is only scaling, let's skip this, as it will not make
+ // a difference with gaussian blur.
+ // TODO: This should be done in FilterSlot and for all input images
+ if (fabs(trans[1]) > 1e-6 || fabs(trans[2]) > 1e-6) {
notparaller = true;
// TODO: if filter resolution is specified, scaling should be set
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp
index e9c2af19db457a1b7acccfc5983975f0e470c5a9..9d2abcddf53e341f57593cabe3b9646fcac493f6 100644 (file)
--- a/src/sp-filter.cpp
+++ b/src/sp-filter.cpp
filter->_image_name = map<gchar *, int, ltstr>();
+ filter->filterRes = NumberOptNumber();
+
new (&filter->modified_connection) sigc::connection();
}