# HG changeset patch
# User insilmaril
# Date 1259665601 0
# Node ID 1a72c8f24c6ebc8c9044cbe91877517cf73b77a9
# Parent  bdfc1079a723525a21e8efe8509ae7a8a672b4dc
Fixed selection which didn't show sometimes

diff -r bdfc1079a723 -r 1a72c8f24c6e mapeditor.cpp
--- a/mapeditor.cpp	Mon Nov 16 09:07:17 2009 +0000
+++ b/mapeditor.cpp	Tue Dec 01 11:06:41 2009 +0000
@@ -3218,7 +3218,7 @@
 						xelection.select(bo);
 						xelection.update();
 						ensureSelectionVisible();
-					sendSelection();
+						sendSelection();
 					}
 				}
 			}
diff -r bdfc1079a723 -r 1a72c8f24c6e selection.cpp
--- a/selection.cpp	Mon Nov 16 09:07:17 2009 +0000
+++ b/selection.cpp	Tue Dec 01 11:06:41 2009 +0000
@@ -40,16 +40,17 @@
 void Selection::update()
 {
 	QRectF bbox;
-	int w=0;
 	for (int i=0; i< selectList.count(); ++i) 
 	{
 		bbox=selectList.at(i)->getBBox();
 		selboxList.at(i)->setRect (
-			bbox.x()-w,bbox.y()-w, 
-			bbox.width()+2*w, bbox.height()+2*w);
+			bbox.x(),bbox.y(), 
+			bbox.width(), bbox.height());
 		selboxList.at(i)->setPen (color);	
 		selboxList.at(i)->setBrush (color);	
+		selboxList.at(i)->show();
 	}	
+	model->getMapEditor()->getScene()->update();
 }
 
 void Selection::setColor (QColor col)
diff -r bdfc1079a723 -r 1a72c8f24c6e tex/vym.changelog
--- a/tex/vym.changelog	Mon Nov 16 09:07:17 2009 +0000
+++ b/tex/vym.changelog	Tue Dec 01 11:06:41 2009 +0000
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Mon Nov 30 19:34:51 CET 2009 - uwe
+
+- Version: 1.12.6
+- Bugfix: Selection rectangle not always shown, forcing update of
+          QGraphicsScene now.
+
 -------------------------------------------------------------------
 Mon Nov 16 10:03:52 CET 2009 - uwe@insilmaril.de
 
diff -r bdfc1079a723 -r 1a72c8f24c6e version.h
--- a/version.h	Mon Nov 16 09:07:17 2009 +0000
+++ b/version.h	Tue Dec 01 11:06:41 2009 +0000
@@ -4,10 +4,10 @@
 #include <QString>
 
 #define __VYM_NAME "VYM"
-#define __VYM_VERSION "1.12.5"
+#define __VYM_VERSION "1.12.6"
 #define __VYM_CODENAME "Maintenance Update "
 //#define __VYM_CODENAME "Codename: development version"
-#define __VYM_BUILD_DATE "2009-08-06"
+#define __VYM_BUILD_DATE "2009-11-30"
 
 
 bool checkVersion(const QString &);