Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
45cfdc3ea9
3 changed files with 6 additions and 3 deletions
  1. +1
    -0
      build/linux/runpremake
  2. +2
    -2
      extras/juce demo/src/demos/WidgetsDemo.cpp
  3. +3
    -1
      src/juce_appframework/gui/components/controls/juce_TextEditor.cpp

+ 1
- 0
build/linux/runpremake View File

@@ -1 +1,2 @@
#!/bin/bash
premake --file juce_premake.lua --cc gcc --target gnu

+ 2
- 2
extras/juce demo/src/demos/WidgetsDemo.cpp View File

@@ -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.


+ 3
- 1
src/juce_appframework/gui/components/controls/juce_TextEditor.cpp View File

@@ -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)
{


Loading…
Cancel
Save