Fix to resampler

Originally committed to SVN as r1609.
This commit is contained in:
Rodrigo Braz Monteiro 2007-10-18 16:33:46 +00:00
parent 5d5278db88
commit 06530d716c
1 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,10 @@ void DialogResample::OnResample (wxCommandEvent &event) {
return;
}
// Add margins to original resolution
x1 += m[0] + m[1];
x2 += m[2] + m[3];
// Calculate resamples
rx = double(x2)/double(x1);
ry = double(y2)/double(y1);