]> git.lyx.org Git - features.git/blobdiff - src/Row.cpp
Bug fixes. changed_ was always true...
[features.git] / src / Row.cpp
index 043b57d3ebb36082561536330f127e151aa3f742..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)
-       : pos_(pos), end_(0), separator(0), hfill(0), label_hfill(0), x(0)
+       : 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;
 }