Patch #2444 2008-04-21 21:37

jgm

AutoVersioning not auto incrementing
Download
2444-AutoVersioning.patch (1.6 KB)
Category
Plugin::Bugfix
Status
Closed
Close date
2008-04-27 08:16
Assigned to
biplab
Index: src/plugins/contrib/AutoVersioning/AutoVersioning.cpp
===================================================================
--- src/plugins/contrib/AutoVersioning/AutoVersioning.cpp    (revision 5010)
+++ src/plugins/contrib/AutoVersioning/AutoVersioning.cpp    (working copy)
@@ -293,7 +293,7 @@
 // be activated and each has the compilerstarted/Finished ?????
 void AutoVersioning::OnCompilerStarted(CodeBlocksEvent& event)
 {
-    if (m_Project && IsAttached() && m_IsVersioned[event.GetProject()])
+    if (m_Project && IsAttached() && m_IsVersioned[m_Project])
     {
         if (m_Modified)
         {
@@ -316,7 +316,7 @@
 
 void AutoVersioning::OnCompilerFinished(CodeBlocksEvent& event)
 {
-    if (m_Project && IsAttached() && m_IsVersioned[event.GetProject()])
+    if (m_Project && IsAttached() && m_IsVersioned[m_Project])
     {
         ++(GetVersionState().Values.BuildCount);
     }
Index: src/plugins/contrib/AutoVersioning/manifest.xml
===================================================================
--- src/plugins/contrib/AutoVersioning/manifest.xml    (revision 5010)
+++ src/plugins/contrib/AutoVersioning/manifest.xml    (working copy)
@@ -3,7 +3,7 @@
     <SdkVersion major="1" minor="10" release="0" />
     <Plugin name="AutoVersioning">
         <Value title="AutoVersioning" />
-        <Value version="1.2" />
+        <Value version="1.3" />
         <Value description="Auto increments the version and build number of your application every time a change has been made and stores it in version.h with easy to use variable declarations. Also have a feature for committing changes a la SVN style, a version scheme editor and a change log generator.
 
 Example:
jgm 2008-04-21 21:44

Now the auto incrementation is behaving normally again, since it stopped working by the changes introduced on the last patch.

biplab 2008-04-27 08:16

This patch may not be necessary now. Please reopen it if you find it necessary.