Kaydet (Commit) 14560264 authored tarafından Caolán McNamara's avatar Caolán McNamara

Reset preview boundaries on a new scanner

Change-Id: Id2830727216fa25ca5935406a74f4237276d56db
üst ab713ba1
......@@ -71,6 +71,13 @@ public:
{
mpParentDialog = pParent;
}
void ResetForNewScanner()
{
maTopLeft = Point();
maBottomRight = Point();
maMinTopLeft = Point();
maMaxBottomRight = Point(PREVIEW_WIDTH, PREVIEW_HEIGHT);
}
void EnableDrag() { mbDragEnable = true; }
void DisableDrag() { mbDragEnable = false; }
bool IsDragEnabled() { return mbDragEnable; }
......@@ -603,6 +610,7 @@ IMPL_LINK( SaneDlg, SelectHdl, ListBox*, pListBox )
{
mrSane.Close();
mrSane.Open(nNewNumber);
mpPreview->ResetForNewScanner();
InitFields();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment