diff --git a/build/linux/runpremake b/build/linux/runpremake index 04e5ad3ea3..09dcef5736 100644 --- a/build/linux/runpremake +++ b/build/linux/runpremake @@ -1 +1,2 @@ +#!/bin/bash premake --file juce_premake.lua --cc gcc --target gnu \ No newline at end of file diff --git a/extras/juce demo/src/demos/WidgetsDemo.cpp b/extras/juce demo/src/demos/WidgetsDemo.cpp index aec2d6bc87..519da9714c 100644 --- a/extras/juce demo/src/demos/WidgetsDemo.cpp +++ b/extras/juce demo/src/demos/WidgetsDemo.cpp @@ -175,8 +175,8 @@ class CustomMenuComponent : public PopupMenuCustomComponent, public: CustomMenuComponent() - blobX (0), - blobY (0) + : blobX (0), + blobY (0) { // set off a timer to move a blob around on this component every // 300 milliseconds - see the timerCallback() method. diff --git a/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp b/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp index 7529b72d00..8cb1d9dc67 100644 --- a/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp +++ b/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp @@ -2405,7 +2405,9 @@ int TextEditor::findWordBreakBefore (int position) const throw() break; } - const int type = getCharacterCategory (t [position - 1 - startOfBuffer]); + const int type = (position > startOfBuffer) + ? getCharacterCategory (t [position - 1 - startOfBuffer]) + : 0; while (position > startOfBuffer) {