From 61f28fbbddc11c2ed0a600529d68ac91f33e00d6 Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 16 Oct 2013 23:14:27 +0800 Subject: [PATCH] move property settings to credocument --- cre.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cre.cpp b/cre.cpp index b832624f7..7f962cea9 100644 --- a/cre.cpp +++ b/cre.cpp @@ -484,11 +484,6 @@ static int setPageMargins(lua_State *L) { rc.right = luaL_checkint(L, 4); rc.bottom = luaL_checkint(L, 5); doc->text_view->setPageMargins(rc); - CRPropRef props = doc->text_view->propsGetCurrent(); - props->setInt(PROP_PAGE_MARGIN_LEFT, rc.left); - props->setInt(PROP_PAGE_MARGIN_TOP, rc.top); - props->setInt(PROP_PAGE_MARGIN_RIGHT, rc.right); - props->setInt(PROP_PAGE_MARGIN_BOTTOM, rc.bottom); return 0; }