diff --git a/ChangeLog b/ChangeLog index 8250db2e..4366dc81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2019-08-18 Markus Gans * Solved problem detecting terminal size on quick changes + * Update VTerm information only in case of changes + * Fixes print() << FPoint() behavior in FScrollView 2019-08-11 Markus Gans * FRect has now got a scaleBy() method diff --git a/src/include/final/fscrollview.h b/src/include/final/fscrollview.h index 245e0931..77d458b8 100644 --- a/src/include/final/fscrollview.h +++ b/src/include/final/fscrollview.h @@ -73,6 +73,7 @@ class FScrollView : public FWidget public: // Using-declaration using FWidget::setGeometry; + using FWidget::print; // Constructor explicit FScrollView (FWidget* = nullptr); @@ -132,6 +133,7 @@ class FScrollView : public FWidget void scrollTo (const FPoint&); void scrollTo (int, int); void scrollBy (int, int); + void print (const FPoint&) override; void draw() override; void drawBorder() override; @@ -264,6 +266,15 @@ inline bool FScrollView::isViewportPrint() inline void FScrollView::scrollTo (const FPoint& pos) { scrollTo(pos.getX(), pos.getY()); } +//---------------------------------------------------------------------- +inline void FScrollView::print (const FPoint& pos) +{ + if ( use_own_print_area ) + FWidget::setPrintPos(pos); + else + setPrintPos(pos); +} + } // namespace finalcut #endif // FSCROLLVIEW_H