FreeBSD Bugzilla – Attachment 188688 Details for
Bug 220932
x11-toolkits/wxgtk30: Update to 3.0.3.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch 1 from 2 for math/saga to work with x11-toolkits/wxgtk30 3.0.3.1
SAGA-GIS_patch-src_saga__core_saga__gui_wksp__tool.cpp (text/plain), 1.66 KB, created by
Rainer Hurling
on 2017-12-10 14:13:09 UTC
(
hide
)
Description:
Patch 1 from 2 for math/saga to work with x11-toolkits/wxgtk30 3.0.3.1
Filename:
MIME Type:
Creator:
Rainer Hurling
Created:
2017-12-10 14:13:09 UTC
Size:
1.66 KB
patch
obsolete
>--- wksp_tool.cpp.orig 2017-12-05 10:59:04.000000000 +0100 >+++ wksp_tool.cpp 2017-12-08 10:16:47.000000000 +0100 >@@ -135,34 +135,25 @@ > } > > //--------------------------------------------------------- >-wxString CWKSP_Tool::Get_File_Name(void) >-{ >- return( m_pTool->Get_File_Name().c_str() ); >-} >- >-//--------------------------------------------------------- > wxString CWKSP_Tool::Get_Description(void) > { > //----------------------------------------------------- >- if( !Get_File_Name().IsEmpty() ) >+ if( !m_pTool->Get_File_Name().is_Empty() ) > { >+ CSG_String Lib_Name = SG_File_Get_Name(m_pTool->Get_File_Name(), false); >+ CSG_String File_Path = SG_File_Make_Path(SG_File_Get_Path(m_pTool->Get_File_Name()), Lib_Name, ""); >+ >+ File_Path = SG_File_Make_Path(File_Path, CSG_String::Format("%s_%02d", Lib_Name.c_str(), Get_Index())); >+ > CSG_String Description; > CSG_File Stream; > >- wxFileName FileName(Get_File_Name()); >- FileName.AppendDir (FileName.GetName()); >- FileName.SetName (wxString::Format("%s_%02d", FileName.GetName().c_str(), Get_Index())); >- >- FileName.SetExt ("html"); >- >- if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) >+ if( SG_File_Set_Extension(File_Path, "html") && Stream.Open(File_Path, SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) > { > return( Description.c_str() ); > } > >- FileName.SetExt ("htm"); >- >- if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) >+ if( SG_File_Set_Extension(File_Path, "htm" ) && Stream.Open(File_Path, SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) > { > return( Description.c_str() ); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
rhurlin
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 220932
:
184611
|
185617
|
187866
|
188077
|
188476
| 188688 |
188689