Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/0aa621269d493f8520cc2bc8cd0d888fcc6019cd?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
11 additions and
3 deletions
src/domain/UBGraphicsItemDelegate.cpp
src/domain/UBGraphicsStrokesGroup.cpp
@ -419,9 +419,6 @@ bool UBGraphicsItemDelegate::isLocked()
void UBGraphicsItemDelegate : : duplicate ( )
void UBGraphicsItemDelegate : : duplicate ( )
{
{
// TODO UB 4.x .. rewrite .. .this is absurde ... we know what we are duplicating
// TODO UB 4.x .. rewrite .. .this is absurde ... we know what we are duplicating
UBApplication : : boardController - > copy ( ) ;
UBApplication : : boardController - > paste ( ) ;
UBApplication : : boardController - > duplicateItem ( dynamic_cast < UBItem * > ( delegated ( ) ) ) ;
UBApplication : : boardController - > duplicateItem ( dynamic_cast < UBItem * > ( delegated ( ) ) ) ;
}
}
@ -1,5 +1,7 @@
# include "UBGraphicsStrokesGroup.h"
# include "UBGraphicsStrokesGroup.h"
# include "domain/UBGraphicsPolygonItem.h"
# include "core/memcheck.h"
# include "core/memcheck.h"
UBGraphicsStrokesGroup : : UBGraphicsStrokesGroup ( QGraphicsItem * parent ) : QGraphicsItemGroup ( parent )
UBGraphicsStrokesGroup : : UBGraphicsStrokesGroup ( QGraphicsItem * parent ) : QGraphicsItemGroup ( parent )
@ -63,6 +65,15 @@ UBItem* UBGraphicsStrokesGroup::deepCopy() const
{
{
UBGraphicsStrokesGroup * copy = new UBGraphicsStrokesGroup ( ) ;
UBGraphicsStrokesGroup * copy = new UBGraphicsStrokesGroup ( ) ;
QList < QGraphicsItem * > chl = childItems ( ) ;
foreach ( QGraphicsItem * child , chl )
{
UBGraphicsPolygonItem * polygon = dynamic_cast < UBGraphicsPolygonItem * > ( child ) ;
if ( polygon )
copy - > addToGroup ( dynamic_cast < QGraphicsItem * > ( polygon - > deepCopy ( ) ) ) ;
}
copyItemParameters ( copy ) ;
copyItemParameters ( copy ) ;
return copy ;
return copy ;