From Mathias Froehlich, build fixes for legacy unix systems
This commit is contained in:
@@ -473,19 +473,17 @@ osgDB::DirectoryContents ZipArchive::getDirectoryContents(const std::string& dir
|
||||
|
||||
for(; iter != iterEnd; ++iter)
|
||||
{
|
||||
const ZipEntryMapping& ze = *iter;
|
||||
|
||||
std::string searchPath = dirName;
|
||||
CleanupFileString(searchPath);
|
||||
|
||||
if(ze.first.size() > searchPath.size())
|
||||
if(iter->first.size() > searchPath.size())
|
||||
{
|
||||
size_t endSubElement = ze.first.find(searchPath);
|
||||
size_t endSubElement = iter->first.find(searchPath);
|
||||
|
||||
//we match the whole string in the beginning of the path
|
||||
if(endSubElement == 0)
|
||||
{
|
||||
std::string remainingFile = ze.first.substr(searchPath.size() + 1, std::string::npos);
|
||||
std::string remainingFile = iter->first.substr(searchPath.size() + 1, std::string::npos);
|
||||
size_t endFileToken = remainingFile.find_first_of('/');
|
||||
|
||||
if(endFileToken == std::string::npos)
|
||||
|
||||
@@ -342,7 +342,11 @@ bool GraphicsWindowQt::init( QWidget* parent, const QGLWidget* shareWidget, Qt::
|
||||
// WindowFlags
|
||||
Qt::WindowFlags flags = f | Qt::Window | Qt::CustomizeWindowHint;
|
||||
if ( _traits->windowDecoration )
|
||||
flags |= Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint;
|
||||
flags |= Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowSystemMenuHint
|
||||
#if (QT_VERSION_CHECK(4, 5, 0) <= QT_VERSION)
|
||||
| Qt::WindowCloseButtonHint
|
||||
#endif
|
||||
;
|
||||
|
||||
// create widget
|
||||
_widget = new GLWidget( traits2qglFormat( _traits.get() ), parent, shareWidget, flags );
|
||||
|
||||
Reference in New Issue
Block a user