Skip to content

Commit

Permalink
fixed: gtk asserion
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Jan 16, 2022
1 parent ec21a3b commit 95b9bf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CodeLiteIDE-Linux.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "CodeLiteIDE-Linux",
"configs": [{
"name": "Debug",
"targets": [["Run CMake", "mkdir -p build-debug\ncd build-debug\ncmake -DCMAKE_BUILD_TYPE=Debug .. -DCOPY_WX_LIBS=1 -DMAKE_DEB=1 -DCL_PREFIX=$HOME/root -Wno-dev"], ["build", "cd build-debug\nmake -j$(nproc) install"], ["clean", "cd build-debug\nmake -j$(nproc) clean"], ["install", "cd build-debug\nmake -j$(nproc) install"]],
"targets": [["Run CMake", "mkdir -p build-debug\ncd build-debug\ncmake -DCMAKE_BUILD_TYPE=Debug .. -DCOPY_WX_LIBS=1 -DMAKE_DEB=1 -DCL_PREFIX=$HOME/root -Wno-dev -DWITH_WXPATH=$HOME/devl/wxWidgets/build-debug"], ["build", "cd build-debug\nmake -j$(nproc) install"], ["clean", "cd build-debug\nmake -j$(nproc) clean"], ["install", "cd build-debug\nmake -j$(nproc) install"]],
"file_extensions": "*.cpp;*.c;*.txt;*.json;*.hpp;*.cc;*.cxx;*.xml;*.h;*.wxcp;*.xrc;*.rc;*.plist;*.iss;*.md;*.l",
"excludeFilesPattern": "*.o;*.pyc;*.obj;*.workspace;*.o.d;*.exe;*.dll;*.project",
"excludePaths": "/home/ANT.AMAZON.COM/eifrah/devl/codelite/build-debug-native-book;/home/ANT.AMAZON.COM/eifrah/devl/codelite/build-release-gtk2;/home/ANT.AMAZON.COM/eifrah/devl/codelite/bitmaps-dark;/home/ANT.AMAZON.COM/eifrah/devl/codelite/bitmaps-light;/home/ANT.AMAZON.COM/eifrah/devl/codelite/build-debug;/home/ANT.AMAZON.COM/eifrah/devl/codelite/build-release;/home/ANT.AMAZON.COM/eifrah/devl/codelite/codelite-icons-dark;/home/ANT.AMAZON.COM/eifrah/devl/codelite/codelite-icons-fresh-farm;/home/ANT.AMAZON.COM/eifrah/devl/codelite/CxxParser",
Expand Down
7 changes: 7 additions & 0 deletions Plugin/clScrolledPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,13 @@ void clScrolledPanel::DoPositionVScrollbar()
int x = clientRect.GetWidth() - vsbSize.GetWidth();
int y = 0;

if(width < -1) {
width = -1;
}
if(height < -1) {
height = -1;
}

m_vsb->SetSize(width, height);
m_vsb->Move(x, y);
}
Expand Down

0 comments on commit 95b9bf6

Please sign in to comment.