1. === modified file 'src/libnrtype/font-lister.cpp'
  2. --- src/libnrtype/font-lister.cpp 2015-05-09 15:39:31 +0000
  3. +++ src/libnrtype/font-lister.cpp 2015-11-07 02:01:38 +0000
  4. @@ -123,9 +123,12 @@
  5. }
  6. }
  7. -FontLister *FontLister::get_instance()
  8. +FontLister *FontLister::get_instance(bool refresh)
  9. {
  10. static Inkscape::FontLister *instance = new Inkscape::FontLister();
  11. + if(refresh){
  12. + instance = new Inkscape::FontLister();
  13. + }
  14. return instance;
  15. }
  16. === modified file 'src/libnrtype/font-lister.h'
  17. --- src/libnrtype/font-lister.h 2014-10-17 20:03:14 +0000
  18. +++ src/libnrtype/font-lister.h 2015-11-07 01:20:07 +0000
  19. @@ -150,7 +150,7 @@
  20. void update_font_list(SPDocument *document);
  21. public:
  22. - static Inkscape::FontLister *get_instance();
  23. + static Inkscape::FontLister *get_instance(bool refresh = false);
  24. /**
  25. * Takes a hand written font spec and returns a Pango generated one in
  26. === modified file 'src/widgets/text-toolbar.cpp'
  27. --- src/widgets/text-toolbar.cpp 2015-04-29 20:51:23 +0000
  28. +++ src/widgets/text-toolbar.cpp 2015-11-07 01:22:26 +0000
  29. @@ -855,7 +855,7 @@
  30. Ink_ComboBoxEntry_Action* fontStyleAction =
  31. INK_COMBOBOXENTRY_ACTION( g_object_get_data( tbl, "TextFontStyleAction" ) );
  32. - Inkscape::FontLister* fontlister = Inkscape::FontLister::get_instance();
  33. + Inkscape::FontLister* fontlister = Inkscape::FontLister::get_instance(true);
  34. if (!subselection) {
  35. fontlister->update_font_list( SP_ACTIVE_DESKTOP->getDocument());
  36. }
 
 

33

 

987

Pasted Text #1001

-

PasteBin

行数
43
词数
135
文件大小
1.5 KB
创建于
类型
text/plain
Public Domain (PD)
登录后发言!