[DebianGIS-dev] [SCM] saga branch, master, updated. c10a165772381bc5fcf5e2f8001f35dd346b315a

Johan Van de Wauw johan.vandewauw at gmail.com
Fri Jul 2 04:17:54 UTC 2010


The following commit has been merged in the master branch:
commit c10a165772381bc5fcf5e2f8001f35dd346b315a
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Fri Jul 2 06:15:01 2010 +0200

    Fix module description html generation

diff --git a/src/saga_core/saga_gui/wksp_module_manager.cpp b/src/saga_core/saga_gui/wksp_module_manager.cpp
index 29a74e7..f1fcb7a 100644
--- a/src/saga_core/saga_gui/wksp_module_manager.cpp
+++ b/src/saga_core/saga_gui/wksp_module_manager.cpp
@@ -554,6 +554,7 @@ void CWKSP_Module_Manager::_Make_HTML_Docs(void)
 				if( Stream_Libs.is_Open() )
 				{
 					s	= Get_FilePath_Relative(Directory.c_str(), FileName.GetFullPath().c_str()).c_str();	if( s[0] == '\\' )	s	= s.AfterFirst('\\');
+                    if(s[0]=='/') s = s.AfterFirst('/');
 					Stream_Libs.Printf(wxT("<li><a href=\"%s\">%s</a></li>\n"), s.c_str(), Get_Library(i)->Get_Name().c_str());
 				}
 
@@ -567,10 +568,13 @@ void CWKSP_Module_Manager::_Make_HTML_Docs(void)
 			//---------------------------------------------
 			// write the modules
 
-			if( bDirectory )
-				s	= wxT("./../index");
-			else
-				s	= Get_FilePath_Relative(Main.c_str(), FileName.GetFullPath().c_str()).c_str();	if( s[0] == '\\' )	s	= s.AfterFirst('\\');
+			if( bDirectory ){
+				s	= wxT("./../index");}
+			else{
+				s	= Get_FilePath_Relative(Main.c_str(), FileName.GetFullPath().c_str()).c_str();
+                if( s[0] == '\\' )	s	= s.AfterFirst('\\');
+                if(s[0]=='/') s = s.AfterFirst('/');
+            }
 
 			FileName.SetName(wxT("modules"));
 			Stream_List.Open(FileName.GetFullPath().c_str(), SG_FILE_W, false);

-- 
Saga GIS



More information about the Pkg-grass-devel mailing list