]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_macroarg.h
index 434c3fd8dbeddb00007b5c74dc3a08e37f0955e3..0db549d7abe84662ab89c25afb29523a5329b7d9 100644 (file)
 class MathMacroArgument : public MathDimInset {
 public:
        ///
-       explicit MathMacroArgument(int);
-       ///
-       std::auto_ptr<InsetBase> clone() const;
+       explicit MathMacroArgument(std::size_t);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       int number() const { return number_; }
+       std::size_t number() const { return number_; }
        ///
        InsetBase::Code lyxCode() const { return MATHMACROARG_CODE; }
 
@@ -38,8 +36,9 @@ public:
        void write(WriteStream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// A number between 1 and 9
-       int number_;
+       std::size_t number_;
        ///
        char str_[3];
 };