From 74a60eeea2da2c87c4f2f504d0bdc8373e30eddc Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Thu, 11 Oct 2012 22:22:45 +0100 Subject: [PATCH] Show the number of colour components via Menu. Conflicts: picviewer.lua --- pic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pic.c b/pic.c index 51b65bbcc..bad4bfe2d 100644 --- a/pic.c +++ b/pic.c @@ -175,7 +175,8 @@ static int getOriginalPageSize(lua_State *L) { PicDocument *doc = (PicDocument*) luaL_checkudata(L, 1, "picdocument"); lua_pushnumber(L, doc->width); lua_pushnumber(L, doc->height); - return 2; + lua_pushnumber(L, doc->components); + return 3; } /* re-entrant */