]> git.lyx.org Git - features.git/blobdiff - src/ParagraphMetrics.cpp
Remove warnings reported with gcc 4.3:
[features.git] / src / ParagraphMetrics.cpp
index d9272f225501213a6fa82e9d5cd3bc648bce8e0b..701e6742334731e7d575861d9e6972200c4f5419 100644 (file)
@@ -71,7 +71,7 @@ using std::ostream;
 using std::ostringstream;
 
 
-ParagraphMetrics::ParagraphMetrics(Paragraph const & par): par_(&par)
+ParagraphMetrics::ParagraphMetrics(Paragraph const & par): position_(-1), par_(&par)
 {
 }
 
@@ -82,6 +82,7 @@ ParagraphMetrics & ParagraphMetrics::operator=(
        rows_ = pm.rows_;
        dim_ = pm.dim_;
        par_ = pm.par_;
+       position_ = pm.position_;
        return *this;
 }
 
@@ -90,6 +91,7 @@ void ParagraphMetrics::reset(Paragraph const & par)
 {
        par_ = ∥
        dim_ = Dimension();
+       //position_ = -1;
 }
 
 
@@ -110,6 +112,12 @@ void ParagraphMetrics::computeRowSignature(Row & row,
 }
 
 
+void ParagraphMetrics::setPosition(int position)
+{
+       position_ = position;
+}
+
+
 Row & ParagraphMetrics::getRow(pos_type pos, bool boundary)
 {
        BOOST_ASSERT(!rows().empty());