Bugfix für mod mode copy release-1-12-maintained
authorinsilmaril
Mon, 06 Apr 2009 08:40:11 +0000
branchrelease-1-12-maintained
changeset 65a1f609eae872
parent 64 4f305c07dd7c
child 66 c4893070033f
Bugfix für mod mode copy
mapeditor.cpp
tex/vym.changelog
version.h
     1.1 --- a/mapeditor.cpp	Thu Apr 02 09:57:36 2009 +0000
     1.2 +++ b/mapeditor.cpp	Mon Apr 06 08:40:11 2009 +0000
     1.3 @@ -4631,8 +4631,25 @@
     1.4  	{
     1.5  		if (mainWindow->getModMode()==Main::ModModeColor)
     1.6  		{
     1.7 -				pickingColor=true;
     1.8 -				setCursor (PickColorCursor);
     1.9 +			pickingColor=true;
    1.10 +			setCursor (PickColorCursor);
    1.11 +			return;
    1.12 +		} 
    1.13 +		if (mainWindow->getModMode()==Main::ModModeCopy)
    1.14 +		{	
    1.15 +			if (lmo && (typeid(*lmo)==typeid(BranchObj) ||
    1.16 +				typeid(*lmo)==typeid(MapCenterObj) ))
    1.17 +			{
    1.18 +
    1.19 +				selectInt (lmo);
    1.20 +				copy();
    1.21 +				if (lmo->getDepth()>0) select (lmo->getParObj() );
    1.22 +				paste();
    1.23 +				cout << "sel 1="<<getSelectedBranch()->getHeading().toStdString()<<endl;
    1.24 +				lmo=getSelectedBranch()->getLastBranch();
    1.25 +				cout << "sel 2="<<getSelectedBranch()->getHeading().toStdString()<<endl;
    1.26 +				setCursor (Qt::ArrowCursor);
    1.27 +			} else	
    1.28  				return;
    1.29  		} 
    1.30  		if (mainWindow->getModMode()==Main::ModModeXLink)
    1.31 @@ -4677,6 +4694,7 @@
    1.32  
    1.33  			// If modMode==copy, then we want to "move" the _new_ object around
    1.34  			// then we need the offset from p to the _old_ selection, because of tmp
    1.35 +			/*
    1.36  			if (mainWindow->getModMode()==Main::ModModeCopy &&
    1.37  				e->state() & Qt::ControlModifier)
    1.38  			{
    1.39 @@ -4690,6 +4708,7 @@
    1.40  					model->reposition();
    1.41  				}
    1.42  			} 
    1.43 +			*/
    1.44  
    1.45  			movingObj=xelection.single();	
    1.46  		} else
     2.1 --- a/tex/vym.changelog	Thu Apr 02 09:57:36 2009 +0000
     2.2 +++ b/tex/vym.changelog	Mon Apr 06 08:40:11 2009 +0000
     2.3 @@ -1,3 +1,8 @@
     2.4 +-------------------------------------------------------------------
     2.5 +Mon Apr  6 10:38:58 CEST 2009 - uwedr@suse.de
     2.6 +
     2.7 +- Bugfix: mod copy ended in endless loop...
     2.8 +
     2.9  -------------------------------------------------------------------
    2.10  Thu Apr  2 11:56:36 CEST 2009 - uwedr@suse.de
    2.11  
     3.1 --- a/version.h	Thu Apr 02 09:57:36 2009 +0000
     3.2 +++ b/version.h	Mon Apr 06 08:40:11 2009 +0000
     3.3 @@ -4,10 +4,10 @@
     3.4  #include <QString>
     3.5  
     3.6  #define __VYM_NAME "VYM"
     3.7 -#define __VYM_VERSION "1.12.2g"
     3.8 +#define __VYM_VERSION "1.12.2h"
     3.9  #define __VYM_CODENAME "Maintenance Update "
    3.10  //#define __VYM_CODENAME "Codename: development version"
    3.11 -#define __VYM_BUILD_DATE "2009-03-30"
    3.12 +#define __VYM_BUILD_DATE "2009-04-06"
    3.13  
    3.14  
    3.15  bool checkVersion(const QString &);