git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1610 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2011-01-10 19:39:16 +00:00
parent ba700a3f0a
commit 9cf9277082
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -61,8 +61,8 @@
inline bool matches(const String& str) const {
return regex_search(str.begin(), str.end(), regex);
}
inline bool matches(Results& results, const String& str) const {
return matches(results, str.begin(), str.end());
inline bool matches(Results& results, const String& str, size_t start = 0) const {
return matches(results, str.begin() + start, str.end());
}
inline bool matches(Results& results, const String::const_iterator& begin, const String::const_iterator& end) const {
return regex_search(begin, end, results, regex);
+1 -1
View File
@@ -75,9 +75,9 @@ RealSize Rotation::trSizeToBB(const RealSize& size) const {
}
RealRect Rotation::trRectToBB(const RealRect& r) const {
const bool special_case_optimization = false;
double x = r.x * zoomX, y = r.y * zoomY;
double w = r.width * zoomX, h = r.height * zoomY;
const bool special_case_optimization = false;
if (special_case_optimization && is_rad0(angle)) {
return RealRect(origin.x + x, origin.y + y, w, h);
} else if (special_case_optimization && is_rad180(angle)) {