]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.h
tex2lyx: fix import of umlauts and ß in math (#12739)
[lyx.git] / src / ParagraphMetrics.h
index 1d690aab7732071944792d67951a81cece524802..0d186f158bc217917d0d563d47a7592871892061 100644 (file)
@@ -29,7 +29,7 @@ class Paragraph;
 class ParagraphMetrics {
 public:
        /// Default constructor (only here for STL containers).
-       ParagraphMetrics() : position_(0), par_(0) {}
+       ParagraphMetrics() {}
        /// The only useful constructor.
        explicit ParagraphMetrics(Paragraph const & par);
 
@@ -72,16 +72,20 @@ public:
        ///
        int position() const { return position_; }
        void setPosition(int position);
+       ///
+       int id() const { return id_; }
 
 private:
        ///
-       int position_;
+       int position_ = 0;
+       ///
+       int id_ = -1;
        ///
        mutable RowList rows_;
        /// cached dimensions of paragraph
        Dimension dim_;
        ///
-       Paragraph const * par_;
+       Paragraph const * par_ = nullptr;
 };
 
 } // namespace lyx