Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxad0127 committed May 11, 2012
2 parents dce7f17 + 92f069e commit f3ca3ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library/xml
Submodule xml updated from 5707a6 to 970bb0
16 changes: 13 additions & 3 deletions plugins/Brushes.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#pragma once
#include <llimits.h>
#include <sstream>
#include <string>
#include <stack>
#include <set>

typedef vector <df::coord> coord_vec;
class Brush
Expand Down Expand Up @@ -60,10 +65,15 @@ class RectangleBrush : public Brush
};
~RectangleBrush(){};
std::string str() const {
if (x_ == 1 && y_ == 1 && z_ == 1) {
if (x_ == 1 && y_ == 1 && z_ == 1)
{
return "point";
} else {
return "rectangle";
}
else
{
std::ostringstream ss;
ss << "rect: " << x_ << "/" << y_ << "/" << z_ << std::endl;
return ss.str();
}
}
private:
Expand Down

0 comments on commit f3ca3ad

Please sign in to comment.