Calculate allowance value according to resolution value.
--HG-- branch : develop
This commit is contained in:
parent
84243b096f
commit
44b01e8f1b
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
VPoster::VPoster(const QPrinter *printer)
|
VPoster::VPoster(const QPrinter *printer)
|
||||||
:printer(printer), allowence(38)//1 cm
|
:printer(printer), allowence(qRound(10./25.4*printer->resolution()))//1 cm
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user