r14432 by fschmid - Better redraw for brush strokes.
scribus-commit
scribus-commit at lists.scribus.net
Sat Dec 19 10:55:19 CET 2009
Revision: 14432
Author: fschmid
Date: 2009-12-18T22:17:00.158220Z
Commit message: Better redraw for brush strokes.
Changeset:
M /trunk/Scribus/scribus/pageitem.cpp
Diffs:
Index: scribus/pageitem.cpp
===================================================================
--- scribus/pageitem.cpp (revision 14431)
+++ scribus/pageitem.cpp (revision 14432)
@@ -4993,7 +4993,7 @@
ScPattern *pat = &m_Doc->docPatterns[patternStrokeVal];
double ww = (pat->width * patternStrokeScaleX / 100.0) / 2.0;
double hh = (pat->height * patternStrokeScaleY / 100.0) / 2.0;
- extraSpace = qMax(ww, hh);
+ extraSpace = sqrt(ww*ww + hh*hh);
}
}
else
@@ -5151,7 +5151,7 @@
ScPattern *pat = &m_Doc->docPatterns[patternStrokeVal];
double ww = (pat->width * patternStrokeScaleX / 100.0) / 2.0;
double hh = (pat->height * patternStrokeScaleY / 100.0) / 2.0;
- extraSpace = qMax(ww, hh);
+ extraSpace = sqrt(ww*ww + hh*hh);
}
}
else
@@ -5176,7 +5176,7 @@
ScPattern *pat = &m_Doc->docPatterns[patternStrokeVal];
double ww = (pat->width * patternStrokeScaleX / 100.0) / 2.0;
double hh = (pat->height * patternStrokeScaleY / 100.0) / 2.0;
- extraSpace = qMax(ww, hh);
+ extraSpace = sqrt(ww*ww + hh*hh);
}
}
else
@@ -5201,7 +5201,7 @@
ScPattern *pat = &m_Doc->docPatterns[patternStrokeVal];
double ww = (pat->width * patternStrokeScaleX / 100.0) / 2.0;
double hh = (pat->height * patternStrokeScaleY / 100.0) / 2.0;
- extraSpace = qMax(ww, hh);
+ extraSpace = sqrt(ww*ww + hh*hh);
}
}
else
@@ -5226,7 +5226,7 @@
ScPattern *pat = &m_Doc->docPatterns[patternStrokeVal];
double ww = (pat->width * patternStrokeScaleX / 100.0) / 2.0;
double hh = (pat->height * patternStrokeScaleY / 100.0) / 2.0;
- extraSpace = qMax(ww, hh);
+ extraSpace = sqrt(ww*ww + hh*hh);
}
}
else
More information about the scribus-commit
mailing list