]> git.lyx.org Git - features.git/blobdiff - src/Row.cpp
Bug fixes. changed_ was always true...
[features.git] / src / Row.cpp
index b344ed037ba1e167d9b0b2954895ae8c86b70ff5..3bf393b7cefe2ea24e621eab8581aca6dea3633d 100644 (file)
@@ -24,36 +24,40 @@ namespace lyx {
 
 
 Row::Row()
-       : pos_(0), end_(0), separator(0), hfill(0), label_hfill(0), x(0)
+       : changed_(false), crc_(0), pos_(0), end_(0), separator(0), hfill(0),
+       label_hfill(0), x(0)
 {}
 
 
-Row::Row(pos_type pos), separator(0), hfill(0), label_hfill(0), x(0)
-       : pos_(pos), end_(0)
+Row::Row(pos_type pos)
+       : changed_(false), crc_(0), pos_(pos), end_(0), separator(0), hfill(0),
+       label_hfill(0), x(0)
 {}
 
 
-void Row::pos(pos_type p)
+void Row::setCrc(size_type crc)
 {
-       pos_ = p;
+       changed_ |= crc != crc_;
+       crc_ = crc;
 }
 
 
-pos_type Row::pos() const
+void Row::setDimension(Dimension const & dim)
 {
-       return pos_;
+       changed_ |= dim != dim_;
+       dim_ = dim;
 }
 
 
-void Row::endpos(pos_type p)
+void Row::pos(pos_type p)
 {
-       end_ = p;
+       pos_ = p;
 }
 
 
-pos_type Row::endpos() const
+void Row::endpos(pos_type p)
 {
-       return end_;
+       end_ = p;
 }