Skip to content
Snippets Groups Projects
Commit d967c1a3 authored by Septen's avatar Septen
Browse files

Button managers: some bug fixes and remove redundant include statements.

parent 1b18b2d3
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@
#include "../../../JuceLibraryCode/JuceHeader.h"
#include "../../Processors/PluginManager/OpenEphysPlugin.h"
#include "CustomLookAndFeel.h"
/**
......
......@@ -88,7 +88,9 @@ void LinearButtonGroupManager::resized()
const int height = getHeight();
const int numButtons = m_buttons.size();
const int buttonWidth = width / numButtons;
const int buttonWidth = numButtons != 0
? width / numButtons
: 0;
// Set bounds for each button
juce::Rectangle<int> buttonBounds (0, 0, buttonWidth, height);
......
......@@ -24,10 +24,9 @@
#ifndef LINEARBUTTONGROUPMANAGER_H_INCLUDED
#define LINEARBUTTONGROUPMANAGER_H_INCLUDED
#include "../../../JuceLibraryCode/JuceHeader.h"
#include "../../Processors/PluginManager/OpenEphysPlugin.h"
#include "ButtonGroupManager.h"
/**
This class provides possibility to store buttons with radiobutton behaviour in the single
......
......@@ -24,7 +24,6 @@
#ifndef TILEDBUTTONGROUPMANAGER_H_INCLUDED
#define TILEDBUTTONGROUPMANAGER_H_INCLUDED
#include "../../../JuceLibraryCode/JuceHeader.h"
#include "../../Processors/PluginManager/OpenEphysPlugin.h"
#include "ButtonGroupManager.h"
......@@ -37,8 +36,6 @@
using mouse drag selection. (mouse drag - to select, shift+mouse drag to deselect)
*/
class PLUGIN_API TiledButtonGroupManager : public ButtonGroupManager
{
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment