Sketcher: fix contraints cmd crosshair color
This commit is contained in:
@@ -911,25 +911,26 @@ protected:
|
||||
{ return isCreateGeoActive(getActiveGuiDocument()); }
|
||||
};
|
||||
|
||||
extern char cursor_crosshair_color[];
|
||||
|
||||
/* XPM */
|
||||
static const char *cursor_genericconstraint[]={
|
||||
"32 32 3 1",
|
||||
"32 32 2 1",
|
||||
" c None",
|
||||
". c #FFFFFF",
|
||||
"+ c #FF0000",
|
||||
" . ",
|
||||
" . ",
|
||||
" . ",
|
||||
" . ",
|
||||
" . ",
|
||||
cursor_crosshair_color,
|
||||
" + ",
|
||||
" + ",
|
||||
" + ",
|
||||
" + ",
|
||||
" + ",
|
||||
" ",
|
||||
"..... ..... ",
|
||||
"+++++ +++++ ",
|
||||
" ",
|
||||
" . ",
|
||||
" . ",
|
||||
" . ",
|
||||
" . ",
|
||||
" . ",
|
||||
" + ",
|
||||
" + ",
|
||||
" + ",
|
||||
" + ",
|
||||
" + ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
@@ -971,6 +972,8 @@ public:
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
Gui::Selection().addSelectionGate(selFilterGate);
|
||||
|
||||
setCrosshairColor();
|
||||
|
||||
// Constrain icon size in px
|
||||
int iconSize = 16;
|
||||
QPixmap cursorPixmap(cursor_genericconstraint),
|
||||
|
||||
@@ -231,7 +231,7 @@ void removeRedundantHorizontalVertical(Sketcher::SketchObject* psketch,
|
||||
/* Sketch commands =======================================================*/
|
||||
|
||||
static const char cursor_crosshair_color_fmt[] = "+ c #%06lX";
|
||||
static char cursor_crosshair_color[12];
|
||||
char cursor_crosshair_color[12];
|
||||
|
||||
void DrawSketchHandler::setCrosshairColor()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user