Calculate allowance value according to resolution value.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-19 13:59:19 +03:00
parent 84243b096f
commit 44b01e8f1b

View file

@ -39,7 +39,7 @@
//---------------------------------------------------------------------------------------------------------------------
VPoster::VPoster(const QPrinter *printer)
:printer(printer), allowence(38)//1 cm
:printer(printer), allowence(qRound(10./25.4*printer->resolution()))//1 cm
{
}