]> Shamusworld >> Repos - architektonas/blobdiff - src/structs.h
Fix to prevent hit testing of objects on invisible layers.
[architektonas] / src / structs.h
index 20a03d264ba0016e3a03835bacf6f7d209750540..d0dbb55611ae90b00a63f454c3727930f50d5482 100644 (file)
@@ -119,7 +119,7 @@ struct Text {
        std::string s;
 
        Text(): type(OTText), id(Global::objectID++) {}
-       Text(Vector pt1, char * str, float th = 10.0, uint32_t c = 0):
+       Text(Vector pt1, const char * str, float th = 10.0, uint32_t c = 0):
                type(OTText), id(Global::objectID++), layer(0), color(c), thickness(th),
                style(LSSolid), selected(false), hovered(false), hitObject(false),
                measured(false), s(str) { p[0] = pt1; angle[0] = 0; }