Răsfoiți Sursa

Fixed "corrupted QuickPaste position when closing while minimized" bug.

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@109 595ec19a-5cb4-439b-94a8-42fb3063c22c
ingenuus 21 ani în urmă
părinte
comite
b754365644
3 a modificat fișierele cu 12 adăugiri și 2 ștergeri
  1. 10 0
      Changes.txt
  2. 1 1
      QPasteWnd.cpp
  3. 1 1
      WndEx.cpp

+ 10 - 0
Changes.txt

@@ -1,3 +1,13 @@
+04 Aug 31
+---------
+! Fixed "Corrupted QuickPaste position when closing Ditto while minimized /
+  rolled-up" bug.
+  . Reported By: Anthony Ford - tonyforduk 2004-08-27 14:08
+    http://sourceforge.net/forum/message.php?msg_id=2732759
+  * CWndEx::GetWindowRectEx() was not properly copying m_crFullSizeWindow
+    when m_bMinimized was true.
+
+
 04 May 30
 ---------
 + Toggle Connect to Clipboard to Connect or Disconnect the

+ 1 - 1
QPasteWnd.cpp

@@ -344,7 +344,7 @@ BOOL CQPasteWnd::HideQPasteWindow()
 	
 	//Save the size
 	CRect rect;
-	GetWindowRectEx(rect);
+	GetWindowRectEx(&rect);
 	CGetSetOptions::SetQuickPasteSize(rect.Size());
 	CGetSetOptions::SetQuickPastePoint(rect.TopLeft());
 	

+ 1 - 1
WndEx.cpp

@@ -48,7 +48,7 @@ void CWndEx::GetWindowRectEx(LPRECT lpRect)
 {
 	if(m_bMinimized)
 	{
-		lpRect = m_crFullSizeWindow;
+		*lpRect = m_crFullSizeWindow;
 		return;
 	}