]> git.lyx.org Git - features.git/blobdiff - src/Text3.cpp
Move graphics code from class to namespace.
[features.git] / src / Text3.cpp
index 17b8d474db3440c105f65ebf9ba46fffd4aa278e..e787e08d07515cedb9a86a78a1db90cfe2dbbf16 100644 (file)
@@ -893,14 +893,14 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_SET_GRAPHICS_GROUP: {
-               InsetGraphics * ins = InsetGraphics::getCurrentGraphicsInset(cur);
+               InsetGraphics * ins = graphics::getCurrentGraphicsInset(cur);
                if (!ins)
                        break;
 
                cur.recordUndoFullDocument();
 
                string id = to_utf8(cmd.argument());
-               string grp = InsetGraphics::getGroupParams(bv->buffer(), id);
+               string grp = graphics::getGroupParams(bv->buffer(), id);
                InsetGraphicsParams tmp, inspar = ins->getParams();
 
                if (id.empty())
@@ -2183,7 +2183,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
                break;
 
        case LFUN_SET_GRAPHICS_GROUP: {
-               InsetGraphics * ins = InsetGraphics::getCurrentGraphicsInset(cur);
+               InsetGraphics * ins = graphics::getCurrentGraphicsInset(cur);
                if (!ins) 
                        enable = false;
                else